pub enum Membership {
Leave,
Join,
Invite,
Ban,
Knock,
Unsupported,
}
Expand description
The possible states of membership of a user in a room.
Variants§
Leave
The user left the room, or was never in the room.
Join
The user is currently in the room.
Invite
The user was invited to the room.
Ban
The user was baned from the room.
Knock
The user knocked on the room.
Unsupported
The user is in an unsupported membership state.
Implementations§
Source§impl Membership
impl Membership
Sourcefn register_enum() -> Type
fn register_enum() -> Type
Registers the enum only once.
Trait Implementations§
Source§impl Clone for Membership
impl Clone for Membership
Source§fn clone(&self) -> Membership
fn clone(&self) -> Membership
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 Membership
impl Debug for Membership
Source§impl Default for Membership
impl Default for Membership
Source§fn default() -> Membership
fn default() -> Membership
Returns the “default value” for a type. Read more
Source§impl From<&MembershipState> for Membership
impl From<&MembershipState> for Membership
Source§fn from(state: &MembershipState) -> Self
fn from(state: &MembershipState) -> Self
Converts to this type from the input type.
Source§impl From<Membership> for Value
impl From<Membership> for Value
Source§fn from(v: Membership) -> Self
fn from(v: Membership) -> Self
Converts to this type from the input type.
Source§impl From<Membership> for Variant
impl From<Membership> for Variant
Source§fn from(v: Membership) -> Variant
fn from(v: Membership) -> Variant
Converts to this type from the input type.
Source§impl From<MembershipState> for Membership
impl From<MembershipState> for Membership
Source§fn from(state: MembershipState) -> Self
fn from(state: MembershipState) -> Self
Converts to this type from the input type.
Source§impl<'a> FromValue<'a> for Membership
impl<'a> FromValue<'a> for Membership
Source§type Checker = GenericValueTypeChecker<Membership>
type Checker = GenericValueTypeChecker<Membership>
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 FromVariant for Membership
impl FromVariant for Membership
Source§impl HasParamSpec for Membership
impl HasParamSpec for Membership
type ParamSpec = ParamSpecEnum
Source§type SetValue = Membership
type SetValue = Membership
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(_: &str, _: Membership) -> ParamSpecEnumBuilder<'_, Membership>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for Membership
impl Hash for Membership
Source§impl PartialEq for Membership
impl PartialEq for Membership
Source§impl StaticType for Membership
impl StaticType for Membership
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.Source§impl StaticVariantType for Membership
impl StaticVariantType for Membership
Source§fn static_variant_type() -> Cow<'static, VariantTy>
fn static_variant_type() -> Cow<'static, VariantTy>
Returns the
VariantType
corresponding to Self
.Source§impl ToValue for Membership
impl ToValue for Membership
Source§impl ToVariant for Membership
impl ToVariant for Membership
Source§fn to_variant(&self) -> Variant
fn to_variant(&self) -> Variant
Returns a
Variant
clone of self
.Source§impl TryFromGlib<i32> for Membership
impl TryFromGlib<i32> for Membership
Source§impl ValueType for Membership
impl ValueType for Membership
Source§type Type = Membership
type Type = Membership
Type to get the
Type
from. Read moreimpl Copy for Membership
impl Eq for Membership
impl StructuralPartialEq for Membership
Auto Trait Implementations§
impl Freeze for Membership
impl RefUnwindSafe for Membership
impl Send for Membership
impl Sync for Membership
impl Unpin for Membership
impl UnwindSafe for Membership
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> 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
.