matrix_sdk_crypto::types::events::room::encrypted

Type Alias EncryptedToDeviceEvent

Source
pub type EncryptedToDeviceEvent = ToDeviceEvent<ToDeviceEncryptedEventContent>;
Expand description

An m.room.encrypted to-device event.

Aliased Type§

struct EncryptedToDeviceEvent {
    pub sender: OwnedUserId,
    pub content: ToDeviceEncryptedEventContent,
    /* private fields */
}

Fields§

§sender: OwnedUserId

The sender of the to-device event.

§content: ToDeviceEncryptedEventContent

The content of the to-device event.

Implementations§

Source§

impl EncryptedToDeviceEvent

Source

pub fn algorithm(&self) -> EventEncryptionAlgorithm

Get the algorithm of the encrypted event content.