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§

§

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§

source§

impl Clone for AnyToDeviceEventContent

source§

fn clone(&self) -> AnyToDeviceEventContent

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for AnyToDeviceEventContent

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl EventContent for AnyToDeviceEventContent

§

type EventType = ToDeviceEventType

The Rust enum for the event kind’s known types.
source§

fn event_type(&self) -> Self::EventType

Get the event’s type, like m.room.message.
source§

impl From<ToDeviceDummyEventContent> for AnyToDeviceEventContent

source§

fn from(c: ToDeviceDummyEventContent) -> Self

Converts to this type from the input type.
source§

impl From<ToDeviceForwardedRoomKeyEventContent> for AnyToDeviceEventContent

source§

fn from(c: ToDeviceForwardedRoomKeyEventContent) -> Self

Converts to this type from the input type.
source§

impl From<ToDeviceKeyVerificationAcceptEventContent> for AnyToDeviceEventContent

source§

fn from(c: ToDeviceKeyVerificationAcceptEventContent) -> Self

Converts to this type from the input type.
source§

impl From<ToDeviceKeyVerificationCancelEventContent> for AnyToDeviceEventContent

source§

fn from(c: ToDeviceKeyVerificationCancelEventContent) -> Self

Converts to this type from the input type.
source§

impl From<ToDeviceKeyVerificationDoneEventContent> for AnyToDeviceEventContent

source§

fn from(c: ToDeviceKeyVerificationDoneEventContent) -> Self

Converts to this type from the input type.
source§

impl From<ToDeviceKeyVerificationKeyEventContent> for AnyToDeviceEventContent

source§

fn from(c: ToDeviceKeyVerificationKeyEventContent) -> Self

Converts to this type from the input type.
source§

impl From<ToDeviceKeyVerificationMacEventContent> for AnyToDeviceEventContent

source§

fn from(c: ToDeviceKeyVerificationMacEventContent) -> Self

Converts to this type from the input type.
source§

impl From<ToDeviceKeyVerificationReadyEventContent> for AnyToDeviceEventContent

source§

fn from(c: ToDeviceKeyVerificationReadyEventContent) -> Self

Converts to this type from the input type.
source§

impl From<ToDeviceKeyVerificationRequestEventContent> for AnyToDeviceEventContent

source§

fn from(c: ToDeviceKeyVerificationRequestEventContent) -> Self

Converts to this type from the input type.
source§

impl From<ToDeviceKeyVerificationStartEventContent> for AnyToDeviceEventContent

source§

fn from(c: ToDeviceKeyVerificationStartEventContent) -> Self

Converts to this type from the input type.
source§

impl From<ToDeviceRoomEncryptedEventContent> for AnyToDeviceEventContent

source§

fn from(c: ToDeviceRoomEncryptedEventContent) -> Self

Converts to this type from the input type.
source§

impl From<ToDeviceRoomKeyEventContent> for AnyToDeviceEventContent

source§

fn from(c: ToDeviceRoomKeyEventContent) -> Self

Converts to this type from the input type.
source§

impl From<ToDeviceRoomKeyRequestEventContent> for AnyToDeviceEventContent

source§

fn from(c: ToDeviceRoomKeyRequestEventContent) -> Self

Converts to this type from the input type.
source§

impl From<ToDeviceSecretRequestEventContent> for AnyToDeviceEventContent

source§

fn from(c: ToDeviceSecretRequestEventContent) -> Self

Converts to this type from the input type.
source§

impl From<ToDeviceSecretSendEventContent> for AnyToDeviceEventContent

source§

fn from(c: ToDeviceSecretSendEventContent) -> Self

Converts to this type from the input type.
source§

impl Serialize for AnyToDeviceEventContent

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl ToDeviceEventContent for AnyToDeviceEventContent

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more