#[repr(u32)]pub enum RoomType {
Invited = 0,
Favorite = 1,
Normal = 2,
LowPriority = 3,
Left = 4,
Outdated = 5,
Space = 6,
Ignored = 7,
}
Variants§
Invited = 0
The user was invited to the room.
Favorite = 1
The room is joined and has the m.favourite
tag.
Normal = 2
The room is joined and has no known tag.
LowPriority = 3
The room is joined and has the m.lowpriority
tag.
Left = 4
The room was left by the user, or they were kicked or banned.
Outdated = 5
The room was upgraded and their successor was joined.
Space = 6
The room is a space.
Ignored = 7
The room should be ignored.
According to the Matrix specification, invites from ignored users should be ignored.
Implementations§
Trait Implementations§
source§impl From<&RoomType> for CategoryType
impl From<&RoomType> for CategoryType
source§impl From<RoomType> for CategoryType
impl From<RoomType> for CategoryType
source§impl<'a> FromValue<'a> for RoomType
impl<'a> FromValue<'a> for RoomType
§type Checker = GenericValueTypeChecker<RoomType>
type Checker = GenericValueTypeChecker<RoomType>
Value type checker.
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moresource§impl HasParamSpec for RoomType
impl HasParamSpec for RoomType
source§impl StaticType for RoomType
impl StaticType for RoomType
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl TryFrom<&CategoryType> for RoomType
impl TryFrom<&CategoryType> for RoomType
source§impl TryFrom<CategoryType> for RoomType
impl TryFrom<CategoryType> for RoomType
source§impl TryFromGlib<i32> for RoomType
impl TryFromGlib<i32> for RoomType
impl Copy for RoomType
impl Eq for RoomType
impl StructuralPartialEq for RoomType
Auto Trait Implementations§
impl Freeze for RoomType
impl RefUnwindSafe for RoomType
impl Send for RoomType
impl Sync for RoomType
impl Unpin for RoomType
impl UnwindSafe for RoomType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.