Enum FeatureFlag
#[non_exhaustive]pub enum FeatureFlag {
Msc2246,
Msc2432,
Msc2659,
Msc2659Stable,
Msc3030,
Msc3882,
Msc3916,
Msc3916Stable,
Msc4108,
Msc4140,
Msc4186,
}
Expand description
The Matrix features supported by Ruma.
Features that are not behind a cargo feature are features that are part of the Matrix specification and that Ruma still supports, like the unstable version of an endpoint or a stable feature. Features behind a cargo feature are only supported when this feature is enabled.
This type can hold an arbitrary string. To build this with a custom value, convert it from a
string with ::from()
/ .into()
. To check for values that are not available as a
documented variant here, use its string representation, obtained through
.as_str()
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Msc2246
fi.mau.msc2246
(MSC)
Asynchronous media uploads.
Msc2432
org.matrix.msc2432
(MSC)
Updated semantics for publishing room aliases.
Msc2659
fi.mau.msc2659
(MSC)
Application service ping endpoint.
Msc2659Stable
fi.mau.msc2659
(MSC)
Stable version of the application service ping endpoint.
Msc3030
org.matrix.msc3030
(MSC)
Jump to date API endpoint.
Msc3882
org.matrix.msc3882
(MSC)
Allow an existing session to sign in a new session.
Msc3916
org.matrix.msc3916
(MSC)
Authentication for media.
Msc3916Stable
org.matrix.msc3916.stable
(MSC)
Stable version of authentication for media.
Msc4108
org.matrix.msc4108
(MSC)
Mechanism to allow OIDC sign in and E2EE set up via QR code.
Msc4140
org.matrix.msc4140
(MSC)
Delayed events.
Msc4186
org.matrix.simplified_msc3575
(MSC)
Simplified Sliding Sync.
Implementations§
§impl FeatureFlag
impl FeatureFlag
Trait Implementations§
§impl AsRef<str> for FeatureFlag
impl AsRef<str> for FeatureFlag
§impl Clone for FeatureFlag
impl Clone for FeatureFlag
§fn clone(&self) -> FeatureFlag
fn clone(&self) -> FeatureFlag
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for FeatureFlag
impl Debug for FeatureFlag
§impl<'de> Deserialize<'de> for FeatureFlag
impl<'de> Deserialize<'de> for FeatureFlag
§fn deserialize<D>(
deserializer: D,
) -> Result<FeatureFlag, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<FeatureFlag, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
§impl Display for FeatureFlag
impl Display for FeatureFlag
§impl<T> From<T> for FeatureFlag
impl<T> From<T> for FeatureFlag
§fn from(s: T) -> FeatureFlag
fn from(s: T) -> FeatureFlag
§impl Hash for FeatureFlag
impl Hash for FeatureFlag
§impl Ord for FeatureFlag
impl Ord for FeatureFlag
§impl PartialEq for FeatureFlag
impl PartialEq for FeatureFlag
§impl PartialOrd for FeatureFlag
impl PartialOrd for FeatureFlag
§impl Serialize for FeatureFlag
impl Serialize for FeatureFlag
§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
impl Eq for FeatureFlag
Auto Trait Implementations§
impl Freeze for FeatureFlag
impl RefUnwindSafe for FeatureFlag
impl Send for FeatureFlag
impl Sync for FeatureFlag
impl Unpin for FeatureFlag
impl UnwindSafe for FeatureFlag
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<T> CompatExt for T
impl<T> CompatExt for T
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
key
and return true
if they are equal.Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Arc<>
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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 more