logo
pub enum AnyToDeviceEvent {
Show 15 variants Dummy(ToDeviceDummyEvent), RoomKey(ToDeviceRoomKeyEvent), RoomKeyRequest(ToDeviceRoomKeyRequestEvent), ForwardedRoomKey(ToDeviceForwardedRoomKeyEvent), KeyVerificationRequest(ToDeviceKeyVerificationRequestEvent), KeyVerificationReady(ToDeviceKeyVerificationReadyEvent), KeyVerificationStart(ToDeviceKeyVerificationStartEvent), KeyVerificationCancel(ToDeviceKeyVerificationCancelEvent), KeyVerificationAccept(ToDeviceKeyVerificationAcceptEvent), KeyVerificationKey(ToDeviceKeyVerificationKeyEvent), KeyVerificationMac(ToDeviceKeyVerificationMacEvent), KeyVerificationDone(ToDeviceKeyVerificationDoneEvent), RoomEncrypted(ToDeviceRoomEncryptedEvent), SecretRequest(ToDeviceSecretRequestEvent), SecretSend(ToDeviceSecretSendEvent), // some variants omitted
}
Expand description

Any to-device event.

Variants

Dummy(ToDeviceDummyEvent)

m.dummy

RoomKey(ToDeviceRoomKeyEvent)

m.room_key

RoomKeyRequest(ToDeviceRoomKeyRequestEvent)

m.room_key_request

ForwardedRoomKey(ToDeviceForwardedRoomKeyEvent)

m.forwarded_room_key

KeyVerificationRequest(ToDeviceKeyVerificationRequestEvent)

m.key.verification.request

KeyVerificationReady(ToDeviceKeyVerificationReadyEvent)

m.key.verification.ready

KeyVerificationStart(ToDeviceKeyVerificationStartEvent)

m.key.verification.start

KeyVerificationCancel(ToDeviceKeyVerificationCancelEvent)

m.key.verification.cancel

KeyVerificationAccept(ToDeviceKeyVerificationAcceptEvent)

m.key.verification.accept

KeyVerificationKey(ToDeviceKeyVerificationKeyEvent)

m.key.verification.key

KeyVerificationMac(ToDeviceKeyVerificationMacEvent)

m.key.verification.mac

KeyVerificationDone(ToDeviceKeyVerificationDoneEvent)

m.key.verification.done

RoomEncrypted(ToDeviceRoomEncryptedEvent)

m.room.encrypted

SecretRequest(ToDeviceSecretRequestEvent)

m.secret.request

SecretSend(ToDeviceSecretSendEvent)

m.secret.send

Implementations

Returns the type of this event.

Returns the content for this event.

Returns this event’s sender field.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

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

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

Calls U::from(self).

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

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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