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

pub enum RoomEvent {
    CallAnswer(AnswerEvent),
    CallCandidates(CandidatesEvent),
    CallHangup(HangupEvent),
    CallInvite(InviteEvent),
    RoomEncrypted(EncryptedEvent),
    RoomMessage(MessageEvent),
    RoomMessageFeedback(FeedbackEvent),
    RoomRedaction(RedactionEvent),
    Sticker(StickerEvent),
    CustomRoom(CustomRoomEvent),
}

A room event.

Variants

CallAnswer(AnswerEvent)

m.call.answer

CallCandidates(CandidatesEvent)

m.call.candidates

CallHangup(HangupEvent)

m.call.hangup

CallInvite(InviteEvent)

m.call.invite

RoomEncrypted(EncryptedEvent)

m.room.encrypted

RoomMessage(MessageEvent)

m.room.message

RoomMessageFeedback(FeedbackEvent)

m.room.message.feedback

RoomRedaction(RedactionEvent)

m.room.redaction

Sticker(StickerEvent)

m.sticker

CustomRoom(CustomRoomEvent)

Any room event that is not part of the specification.

Trait Implementations

impl Clone for RoomEvent[src]

impl Debug for RoomEvent[src]

impl From<AnswerEvent> for RoomEvent[src]

impl From<CandidatesEvent> for RoomEvent[src]

impl From<CustomRoomEvent> for RoomEvent[src]

impl From<EncryptedEvent> for RoomEvent[src]

impl From<FeedbackEvent> for RoomEvent[src]

impl From<HangupEvent> for RoomEvent[src]

impl From<InviteEvent> for RoomEvent[src]

impl From<MessageEvent> for RoomEvent[src]

impl From<RedactionEvent> for RoomEvent[src]

impl From<StickerEvent> for RoomEvent[src]

impl Serialize for RoomEvent[src]

impl TryFromRaw for RoomEvent[src]

type Raw = RoomEvent

The raw type.

type Err = String

The error type returned if conversion fails.

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