pub enum RequestedKeyInfo {
MegolmV1AesSha2(MegolmV1AesSha2Content),
Unknown(UnknownRoomKeyRequest),
}Expand description
Info about the room key that is being requested.
Variants§
MegolmV1AesSha2(MegolmV1AesSha2Content)
The m.megolm.v1.aes-sha2 variant of the m.room_key_request content.
Unknown(UnknownRoomKeyRequest)
An unknown and unsupported variant of the m.room_key_request
content.
Implementations§
Source§impl RequestedKeyInfo
impl RequestedKeyInfo
Sourcepub fn algorithm(&self) -> EventEncryptionAlgorithm
pub fn algorithm(&self) -> EventEncryptionAlgorithm
Get the algorithm of the room key request content.
Trait Implementations§
Source§impl Clone for RequestedKeyInfo
impl Clone for RequestedKeyInfo
Source§fn clone(&self) -> RequestedKeyInfo
fn clone(&self) -> RequestedKeyInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RequestedKeyInfo
impl Debug for RequestedKeyInfo
Source§impl<'de> Deserialize<'de> for RequestedKeyInfo
impl<'de> Deserialize<'de> for RequestedKeyInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RequestedKeyInfo
Source§impl From<MegolmV1AesSha2Content> for RequestedKeyInfo
impl From<MegolmV1AesSha2Content> for RequestedKeyInfo
Source§fn from(c: MegolmV1AesSha2Content) -> Self
fn from(c: MegolmV1AesSha2Content) -> Self
Converts to this type from the input type.
Source§impl From<SupportedKeyInfo> for RequestedKeyInfo
impl From<SupportedKeyInfo> for RequestedKeyInfo
Source§fn from(s: SupportedKeyInfo) -> Self
fn from(s: SupportedKeyInfo) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RequestedKeyInfo
impl PartialEq for RequestedKeyInfo
Source§impl Serialize for RequestedKeyInfo
impl Serialize for RequestedKeyInfo
impl StructuralPartialEq for RequestedKeyInfo
Source§impl TryFrom<RequestedKeyInfo> for SupportedKeyInfo
impl TryFrom<RequestedKeyInfo> for SupportedKeyInfo
Auto Trait Implementations§
impl Freeze for RequestedKeyInfo
impl RefUnwindSafe for RequestedKeyInfo
impl Send for RequestedKeyInfo
impl Sync for RequestedKeyInfo
impl Unpin for RequestedKeyInfo
impl UnsafeUnpin for RequestedKeyInfo
impl UnwindSafe for RequestedKeyInfo
Blanket Implementations§
impl<T> AsyncTraitDeps for T
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,
§impl<T> CompatExt for T
impl<T> CompatExt for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> 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
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<> Read moreSource§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> 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 more