Enum ruma_events::AnyToDeviceEvent [−][src]
pub enum AnyToDeviceEvent {}Show 13 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>), // some variants omitted
Expand description
Any to-device event.
Variants
m.dummy
RoomKey(ToDeviceEvent<RoomKeyToDeviceEventContent>)
m.room_key
RoomKeyRequest(ToDeviceEvent<RoomKeyRequestToDeviceEventContent>)
m.room_key_request
ForwardedRoomKey(ToDeviceEvent<ForwardedRoomKeyToDeviceEventContent>)
m.forwarded_room_key
KeyVerificationRequest(ToDeviceEvent<RequestToDeviceEventContent>)
m.key.verification.request
KeyVerificationReady(ToDeviceEvent<ReadyToDeviceEventContent>)
This is supported on crate feature
unstable-pre-spec
only.m.key.verification.ready
KeyVerificationStart(ToDeviceEvent<StartToDeviceEventContent>)
m.key.verification.start
KeyVerificationCancel(ToDeviceEvent<CancelToDeviceEventContent>)
m.key.verification.cancel
KeyVerificationAccept(ToDeviceEvent<AcceptToDeviceEventContent>)
m.key.verification.accept
KeyVerificationKey(ToDeviceEvent<KeyToDeviceEventContent>)
m.key.verification.key
KeyVerificationMac(ToDeviceEvent<MacToDeviceEventContent>)
m.key.verification.mac
KeyVerificationDone(ToDeviceEvent<DoneToDeviceEventContent>)
This is supported on crate feature
unstable-pre-spec
only.m.key.verification.done
RoomEncrypted(ToDeviceEvent<EncryptedToDeviceEventContent>)
m.room.encrypted
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
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