[][src]Trait ruma_events::Event

pub trait Event: Debug + Serialize + Sized + TryFromRaw {
    type Content: Debug + Serialize;
    fn content(&self) -> &Self::Content;
fn event_type(&self) -> EventType; }

A basic event.

Associated Types

type Content: Debug + Serialize

The type of this event's content field.

Loading content...

Required methods

fn content(&self) -> &Self::Content

The event's content.

fn event_type(&self) -> EventType

The type of the event.

Loading content...

Implementors

impl Event for AnswerEvent[src]

type Content = AnswerEventContent

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 Event for CandidatesEvent[src]

type Content = CandidatesEventContent

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 Event for HangupEvent[src]

type Content = HangupEventContent

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 Event for InviteEvent[src]

type Content = InviteEventContent

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 Event for CustomEvent[src]

type Content = CustomEventContent

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 Event for CustomRoomEvent[src]

type Content = CustomRoomEventContent

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 Event for CustomStateEvent[src]

type Content = CustomStateEventContent

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 Event for DirectEvent[src]

type Content = DirectEventContent

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 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 Event for ForwardedRoomKeyEvent[src]

type Content = ForwardedRoomKeyEventContent

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 Event for FullyReadEvent[src]

type Content = FullyReadEventContent

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 Event for IgnoredUserListEvent[src]

type Content = IgnoredUserListEventContent

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 Event for AcceptEvent[src]

type Content = AcceptEventContent

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 Event for CancelEvent[src]

type Content = CancelEventContent

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 Event for KeyEvent[src]

type Content = KeyEventContent

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 Event for MacEvent[src]

type Content = MacEventContent

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 Event for RequestEvent[src]

type Content = RequestEventContent

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 Event for StartEvent[src]

type Content = StartEventContent

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 Event for PresenceEvent[src]

type Content = PresenceEventContent

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 Event for PushRulesEvent[src]

type Content = PushRulesEventContent

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 Event for ReceiptEvent[src]

type Content = ReceiptEventContent

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

type Content = AliasesEventContent

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 Event for AvatarEvent[src]

type Content = AvatarEventContent

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 Event for CanonicalAliasEvent[src]

type Content = CanonicalAliasEventContent

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 Event for CreateEvent[src]

type Content = CreateEventContent

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 Event for EncryptedEvent[src]

type Content = EncryptedEventContent

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 Event for EncryptionEvent[src]

type Content = EncryptionEventContent

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 Event for GuestAccessEvent[src]

type Content = GuestAccessEventContent

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 Event for HistoryVisibilityEvent[src]

type Content = HistoryVisibilityEventContent

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 Event for JoinRulesEvent[src]

type Content = JoinRulesEventContent

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 Event for MemberEvent[src]

type Content = MemberEventContent

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 Event for FeedbackEvent[src]

type Content = FeedbackEventContent

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 Event for MessageEvent[src]

type Content = MessageEventContent

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 Event for NameEvent[src]

type Content = NameEventContent

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 Event for PinnedEventsEvent[src]

type Content = PinnedEventsEventContent

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 Event for PowerLevelsEvent[src]

type Content = PowerLevelsEventContent

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 Event for RedactionEvent[src]

type Content = RedactionEventContent

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 Event for ServerAclEvent[src]

type Content = ServerAclEventContent

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 Event for ThirdPartyInviteEvent[src]

type Content = ThirdPartyInviteEventContent

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 Event for TombstoneEvent[src]

type Content = TombstoneEventContent

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 Event for TopicEvent[src]

type Content = TopicEventContent

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 Event for RoomKeyEvent[src]

type Content = RoomKeyEventContent

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 Event for RoomKeyRequestEvent[src]

type Content = RoomKeyRequestEventContent

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 Event for StickerEvent[src]

type Content = StickerEventContent

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 Event for TagEvent[src]

type Content = TagEventContent

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 Event for TypingEvent[src]

type Content = TypingEventContent

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.

Loading content...