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

pub enum Event {
    CallAnswer(AnswerEvent),
    CallCandidates(CandidatesEvent),
    CallHangup(HangupEvent),
    CallInvite(InviteEvent),
    Direct(DirectEvent),
    Dummy(DummyEvent),
    ForwardedRoomKey(ForwardedRoomKeyEvent),
    FullyRead(FullyReadEvent),
    IgnoredUserList(IgnoredUserListEvent),
    KeyVerificationAccept(AcceptEvent),
    KeyVerificationCancel(CancelEvent),
    KeyVerificationKey(KeyEvent),
    KeyVerificationMac(MacEvent),
    KeyVerificationRequest(RequestEvent),
    KeyVerificationStart(StartEvent),
    Presence(PresenceEvent),
    PushRules(PushRulesEvent),
    Receipt(ReceiptEvent),
    RoomAliases(AliasesEvent),
    RoomAvatar(AvatarEvent),
    RoomCanonicalAlias(CanonicalAliasEvent),
    RoomCreate(CreateEvent),
    RoomEncrypted(EncryptedEvent),
    RoomEncryption(EncryptionEvent),
    RoomGuestAccess(GuestAccessEvent),
    RoomHistoryVisibility(HistoryVisibilityEvent),
    RoomJoinRules(JoinRulesEvent),
    RoomMember(MemberEvent),
    RoomMessage(MessageEvent),
    RoomMessageFeedback(FeedbackEvent),
    RoomName(NameEvent),
    RoomPinnedEvents(PinnedEventsEvent),
    RoomPowerLevels(PowerLevelsEvent),
    RoomRedaction(RedactionEvent),
    RoomServerAcl(ServerAclEvent),
    RoomThirdPartyInvite(ThirdPartyInviteEvent),
    RoomTombstone(TombstoneEvent),
    RoomTopic(TopicEvent),
    RoomKey(RoomKeyEvent),
    RoomKeyRequest(RoomKeyRequestEvent),
    Sticker(StickerEvent),
    Tag(TagEvent),
    Typing(TypingEvent),
    Custom(CustomEvent),
    CustomRoom(CustomRoomEvent),
    CustomState(CustomStateEvent),
}

A basic event, room event, or state event.

Variants

CallAnswer(AnswerEvent)

m.call.answer

CallCandidates(CandidatesEvent)

m.call.candidates

CallHangup(HangupEvent)

m.call.hangup

CallInvite(InviteEvent)

m.call.invite

Direct(DirectEvent)

m.direct

Dummy(DummyEvent)

m.dummy

ForwardedRoomKey(ForwardedRoomKeyEvent)

m.forwarded_room_key

FullyRead(FullyReadEvent)

m.fully_read

IgnoredUserList(IgnoredUserListEvent)

m.ignored_user_list

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

Presence(PresenceEvent)

m.presence

PushRules(PushRulesEvent)

m.push_rules

Receipt(ReceiptEvent)

m.receipt

RoomAliases(AliasesEvent)

m.room.aliases

RoomAvatar(AvatarEvent)

m.room.avatar

RoomCanonicalAlias(CanonicalAliasEvent)

m.room.canonical_alias

RoomCreate(CreateEvent)

m.room.create

RoomEncrypted(EncryptedEvent)

m.room.encrypted

RoomEncryption(EncryptionEvent)

m.room.encryption

RoomGuestAccess(GuestAccessEvent)

m.room.guest_access

RoomHistoryVisibility(HistoryVisibilityEvent)

m.room.history_visibility

RoomJoinRules(JoinRulesEvent)

m.room.join_rules

RoomMember(MemberEvent)

m.room.member

RoomMessage(MessageEvent)

m.room.message

RoomMessageFeedback(FeedbackEvent)

m.room.message.feedback

RoomName(NameEvent)

m.room.name

RoomPinnedEvents(PinnedEventsEvent)

m.room.pinned_events

RoomPowerLevels(PowerLevelsEvent)

m.room.power_levels

RoomRedaction(RedactionEvent)

m.room.redaction

RoomServerAcl(ServerAclEvent)

m.room.server_acl

RoomThirdPartyInvite(ThirdPartyInviteEvent)

m.room.third_party_invite

RoomTombstone(TombstoneEvent)

m.room.tombstone

RoomTopic(TopicEvent)

m.room.topic

RoomKey(RoomKeyEvent)

m.room_key

RoomKeyRequest(RoomKeyRequestEvent)

m.room_key_request

Sticker(StickerEvent)

m.sticker

m.tag

Typing(TypingEvent)

m.typing

Custom(CustomEvent)

Any basic event that is not part of the specification.

CustomRoom(CustomRoomEvent)

Any room event that is not part of the specification.

CustomState(CustomStateEvent)

Any state 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<AliasesEvent> for Event[src]

impl From<AnswerEvent> for Event[src]

impl From<AvatarEvent> for Event[src]

impl From<CancelEvent> for Event[src]

impl From<CandidatesEvent> for Event[src]

impl From<CanonicalAliasEvent> for Event[src]

impl From<CreateEvent> for Event[src]

impl From<CustomEvent> for Event[src]

impl From<CustomRoomEvent> for Event[src]

impl From<CustomStateEvent> for Event[src]

impl From<DirectEvent> for Event[src]

impl From<DummyEvent> for Event[src]

impl From<EncryptedEvent> for Event[src]

impl From<EncryptionEvent> for Event[src]

impl From<FeedbackEvent> for Event[src]

impl From<ForwardedRoomKeyEvent> for Event[src]

impl From<FullyReadEvent> for Event[src]

impl From<GuestAccessEvent> for Event[src]

impl From<HangupEvent> for Event[src]

impl From<HistoryVisibilityEvent> for Event[src]

impl From<IgnoredUserListEvent> for Event[src]

impl From<InviteEvent> for Event[src]

impl From<JoinRulesEvent> for Event[src]

impl From<KeyEvent> for Event[src]

impl From<MacEvent> for Event[src]

impl From<MemberEvent> for Event[src]

impl From<MessageEvent> for Event[src]

impl From<NameEvent> for Event[src]

impl From<PinnedEventsEvent> for Event[src]

impl From<PowerLevelsEvent> for Event[src]

impl From<PresenceEvent> for Event[src]

impl From<PushRulesEvent> for Event[src]

impl From<ReceiptEvent> for Event[src]

impl From<RedactionEvent> for Event[src]

impl From<RequestEvent> for Event[src]

impl From<RoomKeyEvent> for Event[src]

impl From<RoomKeyRequestEvent> for Event[src]

impl From<ServerAclEvent> for Event[src]

impl From<StartEvent> for Event[src]

impl From<StickerEvent> for Event[src]

impl From<TagEvent> for Event[src]

impl From<ThirdPartyInviteEvent> for Event[src]

impl From<TombstoneEvent> for Event[src]

impl From<TopicEvent> 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>,