Enum ruma_events::AnyToDeviceEvent [−][src]
pub enum AnyToDeviceEvent {
Show 15 variants
Dummy(ToDeviceEvent<DummyToDeviceEventContent>),
RoomKey(ToDeviceEvent<RoomKeyToDeviceEventContent>),
RoomKeyRequest(ToDeviceEvent<RoomKeyRequestToDeviceEventContent>),
ForwardedRoomKey(ToDeviceEvent<ForwardedRoomKeyToDeviceEventContent>),
KeyVerificationRequest(ToDeviceEvent<RequestToDeviceEventContent>),
KeyVerificationReady(ToDeviceEvent<ReadyToDeviceEventContent>),
KeyVerificationStart(ToDeviceEvent<StartToDeviceEventContent>),
KeyVerificationCancel(ToDeviceEvent<CancelToDeviceEventContent>),
KeyVerificationAccept(ToDeviceEvent<AcceptToDeviceEventContent>),
KeyVerificationKey(ToDeviceEvent<KeyToDeviceEventContent>),
KeyVerificationMac(ToDeviceEvent<MacToDeviceEventContent>),
KeyVerificationDone(ToDeviceEvent<DoneToDeviceEventContent>),
RoomEncrypted(ToDeviceEvent<EncryptedToDeviceEventContent>),
SecretRequest(ToDeviceEvent<RequestToDeviceEventContent>),
SecretSend(ToDeviceEvent<SendToDeviceEventContent>),
// some variants omitted
}
Expand description
Any to-device event.
Variants
m.dummy
Tuple Fields of Dummy
RoomKey(ToDeviceEvent<RoomKeyToDeviceEventContent>)
m.room_key
Tuple Fields of RoomKey
RoomKeyRequest(ToDeviceEvent<RoomKeyRequestToDeviceEventContent>)
m.room_key_request
Tuple Fields of RoomKeyRequest
ForwardedRoomKey(ToDeviceEvent<ForwardedRoomKeyToDeviceEventContent>)
m.forwarded_room_key
Tuple Fields of ForwardedRoomKey
KeyVerificationRequest(ToDeviceEvent<RequestToDeviceEventContent>)
m.key.verification.request
Tuple Fields of KeyVerificationRequest
KeyVerificationReady(ToDeviceEvent<ReadyToDeviceEventContent>)
unstable-pre-spec
only.m.key.verification.ready
Tuple Fields of KeyVerificationReady
KeyVerificationStart(ToDeviceEvent<StartToDeviceEventContent>)
m.key.verification.start
Tuple Fields of KeyVerificationStart
KeyVerificationCancel(ToDeviceEvent<CancelToDeviceEventContent>)
m.key.verification.cancel
Tuple Fields of KeyVerificationCancel
KeyVerificationAccept(ToDeviceEvent<AcceptToDeviceEventContent>)
m.key.verification.accept
Tuple Fields of KeyVerificationAccept
KeyVerificationKey(ToDeviceEvent<KeyToDeviceEventContent>)
m.key.verification.key
Tuple Fields of KeyVerificationKey
KeyVerificationMac(ToDeviceEvent<MacToDeviceEventContent>)
m.key.verification.mac
Tuple Fields of KeyVerificationMac
KeyVerificationDone(ToDeviceEvent<DoneToDeviceEventContent>)
unstable-pre-spec
only.m.key.verification.done
Tuple Fields of KeyVerificationDone
RoomEncrypted(ToDeviceEvent<EncryptedToDeviceEventContent>)
m.room.encrypted
Tuple Fields of RoomEncrypted
SecretRequest(ToDeviceEvent<RequestToDeviceEventContent>)
unstable-pre-spec
only.m.secret.request
Tuple Fields of SecretRequest
SecretSend(ToDeviceEvent<SendToDeviceEventContent>)
unstable-pre-spec
only.m.secret.send
Tuple Fields of SecretSend
Implementations
Returns the any content enum for this event.
Returns the type
of this event.
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
impl From<ToDeviceEvent<DoneToDeviceEventContent>> for AnyToDeviceEvent
This is supported on crate feature unstable-pre-spec
only.
impl From<ToDeviceEvent<DoneToDeviceEventContent>> for AnyToDeviceEvent
unstable-pre-spec
only.Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
impl From<ToDeviceEvent<ReadyToDeviceEventContent>> for AnyToDeviceEvent
This is supported on crate feature unstable-pre-spec
only.
impl From<ToDeviceEvent<ReadyToDeviceEventContent>> for AnyToDeviceEvent
unstable-pre-spec
only.Performs the conversion.
Performs the conversion.
impl From<ToDeviceEvent<RequestToDeviceEventContent>> for AnyToDeviceEvent
This is supported on crate feature unstable-pre-spec
only.
impl From<ToDeviceEvent<RequestToDeviceEventContent>> for AnyToDeviceEvent
unstable-pre-spec
only.Performs the conversion.
Performs the conversion.
Performs the conversion.
impl From<ToDeviceEvent<SendToDeviceEventContent>> for AnyToDeviceEvent
This is supported on crate feature unstable-pre-spec
only.
impl From<ToDeviceEvent<SendToDeviceEventContent>> for AnyToDeviceEvent
unstable-pre-spec
only.Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for AnyToDeviceEvent
impl Send for AnyToDeviceEvent
impl Sync for AnyToDeviceEvent
impl Unpin for AnyToDeviceEvent
impl UnwindSafe for AnyToDeviceEvent
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more