[][src]Enum ruma_events::collections::only::Event

pub enum Event {
    Direct(DirectEvent),
    Dummy(DummyEvent),
    ForwardedRoomKey(ForwardedRoomKeyEvent),
    FullyRead(FullyReadEvent),
    KeyVerificationAccept(AcceptEvent),
    KeyVerificationCancel(CancelEvent),
    KeyVerificationKey(KeyEvent),
    KeyVerificationMac(MacEvent),
    KeyVerificationRequest(RequestEvent),
    KeyVerificationStart(StartEvent),
    IgnoredUserList(IgnoredUserListEvent),
    Presence(PresenceEvent),
    PushRules(PushRulesEvent),
    RoomKey(RoomKeyEvent),
    RoomKeyRequest(RoomKeyRequestEvent),
    Receipt(ReceiptEvent),
    Tag(TagEvent),
    Typing(TypingEvent),
    Custom(CustomEvent),
}

A basic event.

Variants

Direct(DirectEvent)

m.direct

Dummy(DummyEvent)

m.dummy

ForwardedRoomKey(ForwardedRoomKeyEvent)

m.forwarded_room_key

FullyRead(FullyReadEvent)

m.fully_read

KeyVerificationAccept(AcceptEvent)

m.key.verification.accept

KeyVerificationCancel(CancelEvent)

m.key.verification.cancel

KeyVerificationKey(KeyEvent)

m.key.verification.key

KeyVerificationMac(MacEvent)

m.key.verification.mac

KeyVerificationRequest(RequestEvent)

m.key.verification.request

KeyVerificationStart(StartEvent)

m.key.verification.start

IgnoredUserList(IgnoredUserListEvent)

m.ignored_user_list

Presence(PresenceEvent)

m.presence

PushRules(PushRulesEvent)

m.push_rules

RoomKey(RoomKeyEvent)

m.room_key

RoomKeyRequest(RoomKeyRequestEvent)

m.room_key_request

Receipt(ReceiptEvent)

m.receipt

m.tag

Typing(TypingEvent)

m.typing

Custom(CustomEvent)

Any basic event that is not part of the specification.

Trait Implementations

impl Clone for Event[src]

impl Debug for Event[src]

impl From<AcceptEvent> for Event[src]

impl From<CancelEvent> for Event[src]

impl From<CustomEvent> for Event[src]

impl From<DirectEvent> for Event[src]

impl From<DummyEvent> for Event[src]

impl From<ForwardedRoomKeyEvent> for Event[src]

impl From<FullyReadEvent> for Event[src]

impl From<IgnoredUserListEvent> for Event[src]

impl From<KeyEvent> for Event[src]

impl From<MacEvent> for Event[src]

impl From<PresenceEvent> for Event[src]

impl From<PushRulesEvent> for Event[src]

impl From<ReceiptEvent> for Event[src]

impl From<RequestEvent> for Event[src]

impl From<StartEvent> for Event[src]

impl From<TagEvent> for Event[src]

impl From<TypingEvent> for Event[src]

impl Serialize for Event[src]

impl TryFromRaw for Event[src]

type Raw = Event

The raw type.

type Err = String

The error type returned if conversion fails.

Auto Trait Implementations

impl RefUnwindSafe for Event

impl Send for Event

impl Sync for Event

impl Unpin for Event

impl UnwindSafe for Event

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>,