pub enum RoomCategory {
Invited,
Favorite,
Normal,
LowPriority,
Left,
Outdated,
Space,
Ignored,
}
Expand description
The category of a room.
Variants§
Invited
The user was invited to the room.
Favorite
The room is joined and has the m.favourite
tag.
Normal
The room is joined and has no known tag.
LowPriority
The room is joined and has the m.lowpriority
tag.
Left
The room was left by the user, or they were kicked or banned.
Outdated
The room was upgraded and their successor was joined.
Space
The room is a space.
Ignored
The room should be ignored.
According to the Matrix specification, invites from ignored users should be ignored.
Implementations§
Source§impl RoomCategory
impl RoomCategory
Sourcefn register_enum() -> Type
fn register_enum() -> Type
Registers the enum only once.
Source§impl RoomCategory
impl RoomCategory
Trait Implementations§
Source§impl Clone for RoomCategory
impl Clone for RoomCategory
Source§fn clone(&self) -> RoomCategory
fn clone(&self) -> RoomCategory
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RoomCategory
impl Debug for RoomCategory
Source§impl Default for RoomCategory
impl Default for RoomCategory
Source§fn default() -> RoomCategory
fn default() -> RoomCategory
Returns the “default value” for a type. Read more
Source§impl Display for RoomCategory
impl Display for RoomCategory
Source§impl From<RoomCategory> for Value
impl From<RoomCategory> for Value
Source§fn from(v: RoomCategory) -> Self
fn from(v: RoomCategory) -> Self
Converts to this type from the input type.
Source§impl<'a> FromValue<'a> for RoomCategory
impl<'a> FromValue<'a> for RoomCategory
Source§type Checker = GenericValueTypeChecker<RoomCategory>
type Checker = GenericValueTypeChecker<RoomCategory>
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 RoomCategory
impl HasParamSpec for RoomCategory
type ParamSpec = ParamSpecEnum
Source§type SetValue = RoomCategory
type SetValue = RoomCategory
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(_: &str, _: RoomCategory) -> ParamSpecEnumBuilder<'_, RoomCategory>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for RoomCategory
impl Hash for RoomCategory
Source§impl PartialEq for RoomCategory
impl PartialEq for RoomCategory
Source§impl StaticType for RoomCategory
impl StaticType for RoomCategory
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.Source§impl ToValue for RoomCategory
impl ToValue for RoomCategory
Source§impl TryFromGlib<i32> for RoomCategory
impl TryFromGlib<i32> for RoomCategory
Source§impl ValueType for RoomCategory
impl ValueType for RoomCategory
Source§type Type = RoomCategory
type Type = RoomCategory
Type to get the
Type
from. Read moreimpl Copy for RoomCategory
impl Eq for RoomCategory
impl StructuralPartialEq for RoomCategory
Auto Trait Implementations§
impl Freeze for RoomCategory
impl RefUnwindSafe for RoomCategory
impl Send for RoomCategory
impl Sync for RoomCategory
impl Unpin for RoomCategory
impl UnwindSafe for RoomCategory
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§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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> 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
.