Type Alias matrix_sdk_crypto::types::events::room_key::RoomKeyEvent

source ·
pub type RoomKeyEvent = ToDeviceEvent<RoomKeyContent>;
Expand description

The m.room_key to-device event.

Aliased Type§

struct RoomKeyEvent {
    pub sender: OwnedUserId,
    pub content: RoomKeyContent,
    /* private fields */
}

Fields§

§sender: OwnedUserId

The sender of the to-device event.

§content: RoomKeyContent

The content of the to-device event.

Implementations§

source§

impl RoomKeyEvent

source

pub fn algorithm(&self) -> EventEncryptionAlgorithm

Get the algorithm of the room key.