Trait matrix_sdk_crypto::types::events::EventType

source ·
pub trait EventType {
    const EVENT_TYPE: &'static str;

    // Provided method
    fn event_type(&self) -> &'static str { ... }
}
Expand description

A trait for event contents to define their event type.

Required Associated Constants§

source

const EVENT_TYPE: &'static str

The event type of the event content.

Provided Methods§

source

fn event_type(&self) -> &'static str

Get the event type of the event content.

Note: This should never be implemented manually, this takes the event type from the constant.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T: EventType> EventType for Raw<T>

source§

const EVENT_TYPE: &'static str = T::EVENT_TYPE

Implementors§

source§

impl EventType for ForwardedRoomKeyContent

source§

const EVENT_TYPE: &'static str = "m.forwarded_room_key"

source§

impl EventType for ToDeviceEncryptedEventContent

source§

const EVENT_TYPE: &'static str = "m.room.encrypted"

source§

impl EventType for RoomKeyContent

source§

const EVENT_TYPE: &'static str = "m.room_key"

source§

impl EventType for RoomKeyWithheldContent

source§

const EVENT_TYPE: &'static str = "m.room_key.withheld"

source§

impl EventType for DummyEventContent

source§

const EVENT_TYPE: &'static str = "m.dummy"

source§

impl EventType for RoomEncryptedEventContent

source§

const EVENT_TYPE: &'static str = "m.room.encrypted"

source§

impl EventType for RoomKeyRequestContent

source§

const EVENT_TYPE: &'static str = "m.room_key_request"

source§

impl EventType for SecretSendContent

source§

const EVENT_TYPE: &'static str = "m.secret.send"