Type Alias matrix_sdk_crypto::types::events::room::encrypted::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
impl EncryptedToDeviceEvent
sourcepub fn algorithm(&self) -> EventEncryptionAlgorithm
pub fn algorithm(&self) -> EventEncryptionAlgorithm
Get the algorithm of the encrypted event content.