#[non_exhaustive]
pub enum AnyToDeviceEventContent {
Show 15 variants
Dummy(ToDeviceDummyEventContent),
RoomKey(ToDeviceRoomKeyEventContent),
RoomKeyRequest(ToDeviceRoomKeyRequestEventContent),
ForwardedRoomKey(ToDeviceForwardedRoomKeyEventContent),
KeyVerificationRequest(ToDeviceKeyVerificationRequestEventContent),
KeyVerificationReady(ToDeviceKeyVerificationReadyEventContent),
KeyVerificationStart(ToDeviceKeyVerificationStartEventContent),
KeyVerificationCancel(ToDeviceKeyVerificationCancelEventContent),
KeyVerificationAccept(ToDeviceKeyVerificationAcceptEventContent),
KeyVerificationKey(ToDeviceKeyVerificationKeyEventContent),
KeyVerificationMac(ToDeviceKeyVerificationMacEventContent),
KeyVerificationDone(ToDeviceKeyVerificationDoneEventContent),
RoomEncrypted(ToDeviceRoomEncryptedEventContent),
SecretRequest(ToDeviceSecretRequestEventContent),
SecretSend(ToDeviceSecretSendEventContent),
// some variants omitted
}
Expand description
Any to-device event.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Dummy(ToDeviceDummyEventContent)
m.dummy
RoomKey(ToDeviceRoomKeyEventContent)
m.room_key
RoomKeyRequest(ToDeviceRoomKeyRequestEventContent)
m.room_key_request
ForwardedRoomKey(ToDeviceForwardedRoomKeyEventContent)
m.forwarded_room_key
KeyVerificationRequest(ToDeviceKeyVerificationRequestEventContent)
m.key.verification.request
KeyVerificationReady(ToDeviceKeyVerificationReadyEventContent)
m.key.verification.ready
KeyVerificationStart(ToDeviceKeyVerificationStartEventContent)
m.key.verification.start
KeyVerificationCancel(ToDeviceKeyVerificationCancelEventContent)
m.key.verification.cancel
KeyVerificationAccept(ToDeviceKeyVerificationAcceptEventContent)
m.key.verification.accept
KeyVerificationKey(ToDeviceKeyVerificationKeyEventContent)
m.key.verification.key
KeyVerificationMac(ToDeviceKeyVerificationMacEventContent)
m.key.verification.mac
KeyVerificationDone(ToDeviceKeyVerificationDoneEventContent)
m.key.verification.done
RoomEncrypted(ToDeviceRoomEncryptedEventContent)
m.room.encrypted
SecretRequest(ToDeviceSecretRequestEventContent)
m.secret.request
SecretSend(ToDeviceSecretSendEventContent)
m.secret.send
Trait Implementations
sourceimpl Clone for AnyToDeviceEventContent
impl Clone for AnyToDeviceEventContent
sourcefn clone(&self) -> AnyToDeviceEventContent
fn clone(&self) -> AnyToDeviceEventContent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AnyToDeviceEventContent
impl Debug for AnyToDeviceEventContent
sourceimpl EventContent for AnyToDeviceEventContent
impl EventContent for AnyToDeviceEventContent
type EventType = ToDeviceEventType
type EventType = ToDeviceEventType
The Rust enum for the event kind’s known types.
sourcefn event_type(&self) -> Self::EventType
fn event_type(&self) -> Self::EventType
Get the event’s type, like m.room.message
.
sourceimpl From<ToDeviceDummyEventContent> for AnyToDeviceEventContent
impl From<ToDeviceDummyEventContent> for AnyToDeviceEventContent
sourcefn from(c: ToDeviceDummyEventContent) -> Self
fn from(c: ToDeviceDummyEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<ToDeviceForwardedRoomKeyEventContent> for AnyToDeviceEventContent
impl From<ToDeviceForwardedRoomKeyEventContent> for AnyToDeviceEventContent
sourcefn from(c: ToDeviceForwardedRoomKeyEventContent) -> Self
fn from(c: ToDeviceForwardedRoomKeyEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<ToDeviceKeyVerificationAcceptEventContent> for AnyToDeviceEventContent
impl From<ToDeviceKeyVerificationAcceptEventContent> for AnyToDeviceEventContent
sourcefn from(c: ToDeviceKeyVerificationAcceptEventContent) -> Self
fn from(c: ToDeviceKeyVerificationAcceptEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<ToDeviceKeyVerificationCancelEventContent> for AnyToDeviceEventContent
impl From<ToDeviceKeyVerificationCancelEventContent> for AnyToDeviceEventContent
sourcefn from(c: ToDeviceKeyVerificationCancelEventContent) -> Self
fn from(c: ToDeviceKeyVerificationCancelEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<ToDeviceKeyVerificationDoneEventContent> for AnyToDeviceEventContent
impl From<ToDeviceKeyVerificationDoneEventContent> for AnyToDeviceEventContent
sourcefn from(c: ToDeviceKeyVerificationDoneEventContent) -> Self
fn from(c: ToDeviceKeyVerificationDoneEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<ToDeviceKeyVerificationKeyEventContent> for AnyToDeviceEventContent
impl From<ToDeviceKeyVerificationKeyEventContent> for AnyToDeviceEventContent
sourcefn from(c: ToDeviceKeyVerificationKeyEventContent) -> Self
fn from(c: ToDeviceKeyVerificationKeyEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<ToDeviceKeyVerificationMacEventContent> for AnyToDeviceEventContent
impl From<ToDeviceKeyVerificationMacEventContent> for AnyToDeviceEventContent
sourcefn from(c: ToDeviceKeyVerificationMacEventContent) -> Self
fn from(c: ToDeviceKeyVerificationMacEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<ToDeviceKeyVerificationReadyEventContent> for AnyToDeviceEventContent
impl From<ToDeviceKeyVerificationReadyEventContent> for AnyToDeviceEventContent
sourcefn from(c: ToDeviceKeyVerificationReadyEventContent) -> Self
fn from(c: ToDeviceKeyVerificationReadyEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<ToDeviceKeyVerificationRequestEventContent> for AnyToDeviceEventContent
impl From<ToDeviceKeyVerificationRequestEventContent> for AnyToDeviceEventContent
sourcefn from(c: ToDeviceKeyVerificationRequestEventContent) -> Self
fn from(c: ToDeviceKeyVerificationRequestEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<ToDeviceKeyVerificationStartEventContent> for AnyToDeviceEventContent
impl From<ToDeviceKeyVerificationStartEventContent> for AnyToDeviceEventContent
sourcefn from(c: ToDeviceKeyVerificationStartEventContent) -> Self
fn from(c: ToDeviceKeyVerificationStartEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<ToDeviceRoomEncryptedEventContent> for AnyToDeviceEventContent
impl From<ToDeviceRoomEncryptedEventContent> for AnyToDeviceEventContent
sourcefn from(c: ToDeviceRoomEncryptedEventContent) -> Self
fn from(c: ToDeviceRoomEncryptedEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<ToDeviceRoomKeyEventContent> for AnyToDeviceEventContent
impl From<ToDeviceRoomKeyEventContent> for AnyToDeviceEventContent
sourcefn from(c: ToDeviceRoomKeyEventContent) -> Self
fn from(c: ToDeviceRoomKeyEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<ToDeviceRoomKeyRequestEventContent> for AnyToDeviceEventContent
impl From<ToDeviceRoomKeyRequestEventContent> for AnyToDeviceEventContent
sourcefn from(c: ToDeviceRoomKeyRequestEventContent) -> Self
fn from(c: ToDeviceRoomKeyRequestEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<ToDeviceSecretRequestEventContent> for AnyToDeviceEventContent
impl From<ToDeviceSecretRequestEventContent> for AnyToDeviceEventContent
sourcefn from(c: ToDeviceSecretRequestEventContent) -> Self
fn from(c: ToDeviceSecretRequestEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<ToDeviceSecretSendEventContent> for AnyToDeviceEventContent
impl From<ToDeviceSecretSendEventContent> for AnyToDeviceEventContent
sourcefn from(c: ToDeviceSecretSendEventContent) -> Self
fn from(c: ToDeviceSecretSendEventContent) -> Self
Converts to this type from the input type.
sourceimpl Serialize for AnyToDeviceEventContent
impl Serialize for AnyToDeviceEventContent
Auto Trait Implementations
impl RefUnwindSafe for AnyToDeviceEventContent
impl Send for AnyToDeviceEventContent
impl Sync for AnyToDeviceEventContent
impl Unpin for AnyToDeviceEventContent
impl UnwindSafe for AnyToDeviceEventContent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more