[][src]Struct ruma_events::dummy::DummyEvent

pub struct DummyEvent {
    pub content: DummyEventContent,
}

This event type is used to indicate new Olm sessions for end-to-end encryption.

Typically it is encrypted as an m.room.encrypted event, then sent as a to-device event.

The event does not have any content associated with it. The sending client is expected to send a key share request shortly after this message, causing the receiving client to process this m.dummy event as the most recent event and using the keyshare request to set up the session. The keyshare request and m.dummy combination should result in the original sending client receiving keys over the newly established session.

Fields

content: DummyEventContent

The event's content.

Trait Implementations

impl Clone for DummyEvent[src]

impl Debug for DummyEvent[src]

impl Event for DummyEvent[src]

type Content = DummyEventContent

The type of this event's content field.

fn content(&self) -> &Self::Content[src]

The event's content.

fn event_type(&self) -> EventType[src]

The type of the event.

impl From<DummyEvent> for Event[src]

impl From<DummyEvent> for Event[src]

impl FromRaw for DummyEvent[src]

type Raw = DummyEvent

The raw type.

impl PartialEq<DummyEvent> for DummyEvent[src]

impl Serialize for DummyEvent[src]

impl StructuralPartialEq for DummyEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,