pub enum ToDeviceEvents {
Show 17 variants
Custom(ToDeviceCustomEvent),
Dummy(DummyEvent),
KeyVerificationAccept(ToDeviceKeyVerificationAcceptEvent),
KeyVerificationCancel(ToDeviceKeyVerificationCancelEvent),
KeyVerificationKey(ToDeviceKeyVerificationKeyEvent),
KeyVerificationMac(ToDeviceKeyVerificationMacEvent),
KeyVerificationDone(ToDeviceKeyVerificationDoneEvent),
KeyVerificationStart(ToDeviceKeyVerificationStartEvent),
KeyVerificationReady(ToDeviceKeyVerificationReadyEvent),
KeyVerificationRequest(ToDeviceKeyVerificationRequestEvent),
RoomEncrypted(EncryptedToDeviceEvent),
RoomKey(RoomKeyEvent),
RoomKeyRequest(RoomKeyRequestEvent),
ForwardedRoomKey(Box<ForwardedRoomKeyEvent>),
SecretSend(SecretSendEvent),
SecretRequest(ToDeviceSecretRequestEvent),
RoomKeyWithheld(RoomKeyWithheldEvent),
}
Expand description
An enum over the various to-device events we support.
Variants§
Custom(ToDeviceCustomEvent)
A to-device event of an unknown or custom type.
Dummy(DummyEvent)
The m.dummy
to-device event.
KeyVerificationAccept(ToDeviceKeyVerificationAcceptEvent)
The m.key.verification.accept
to-device event.
KeyVerificationCancel(ToDeviceKeyVerificationCancelEvent)
The m.key.verification.cancel
to-device event.
KeyVerificationKey(ToDeviceKeyVerificationKeyEvent)
The m.key.verification.key
to-device event.
KeyVerificationMac(ToDeviceKeyVerificationMacEvent)
The m.key.verification.mac
to-device event.
KeyVerificationDone(ToDeviceKeyVerificationDoneEvent)
The m.key.verification.done
to-device event.
KeyVerificationStart(ToDeviceKeyVerificationStartEvent)
The m.key.verification.start
to-device event.
KeyVerificationReady(ToDeviceKeyVerificationReadyEvent)
The m.key.verification.ready
to-device event.
KeyVerificationRequest(ToDeviceKeyVerificationRequestEvent)
The m.key.verification.request
to-device event.
RoomEncrypted(EncryptedToDeviceEvent)
The m.room.encrypted
to-device event.
RoomKey(RoomKeyEvent)
The m.room_key
to-device event.
RoomKeyRequest(RoomKeyRequestEvent)
The m.room_key_request
to-device event.
ForwardedRoomKey(Box<ForwardedRoomKeyEvent>)
The m.forwarded_room_key
to-device event.
SecretSend(SecretSendEvent)
The m.secret.send
to-device event.
SecretRequest(ToDeviceSecretRequestEvent)
The m.secret.request
to-device event.
RoomKeyWithheld(RoomKeyWithheldEvent)
The m.room_key.withheld
to-device event.
Implementations§
Source§impl ToDeviceEvents
impl ToDeviceEvents
Sourcepub fn event_type(&self) -> ToDeviceEventType
pub fn event_type(&self) -> ToDeviceEventType
The event type of the to-device event.
Trait Implementations§
Source§impl Debug for ToDeviceEvents
impl Debug for ToDeviceEvents
Source§impl<'de> Deserialize<'de> for ToDeviceEvents
impl<'de> Deserialize<'de> for ToDeviceEvents
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>,
Source§impl Serialize for ToDeviceEvents
impl Serialize for ToDeviceEvents
impl JsonCastable<AnyToDeviceEvent> for ToDeviceEvents
impl JsonCastable<ToDeviceEvents> for AnyToDeviceEvent
Auto Trait Implementations§
impl Freeze for ToDeviceEvents
impl RefUnwindSafe for ToDeviceEvents
impl Send for ToDeviceEvents
impl Sync for ToDeviceEvents
impl Unpin for ToDeviceEvents
impl UnwindSafe for ToDeviceEvents
Blanket Implementations§
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
§impl<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Arc<>
Source§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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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