Trait ruma_events::Event
[−]
[src]
pub trait Event where
Self: Debug + for<'a> Deserialize<'a> + Serialize, { type Content: Debug + for<'a> Deserialize<'a> + Serialize; fn content(&self) -> &Self::Content; fn event_type(&self) -> &EventType; }
A basic event.
Associated Types
type Content: Debug + for<'a> Deserialize<'a> + Serialize
The event-type-specific payload this event carries.
Required Methods
fn content(&self) -> &Self::Content
The event's content.
fn event_type(&self) -> &EventType
The type of the event.
Implementors
impl Event for AnswerEvent type Content = AnswerEventContent;
impl Event for CandidatesEvent type Content = CandidatesEventContent;
impl Event for HangupEvent type Content = HangupEventContent;
impl Event for InviteEvent type Content = InviteEventContent;
impl Event for DirectEvent type Content = DirectEventContent;
impl Event for PresenceEvent type Content = PresenceEventContent;
impl Event for ReceiptEvent type Content = ReceiptEventContent;
impl Event for AliasesEvent type Content = AliasesEventContent;
impl Event for AvatarEvent type Content = AvatarEventContent;
impl Event for CanonicalAliasEvent type Content = CanonicalAliasEventContent;
impl Event for CreateEvent type Content = CreateEventContent;
impl Event for GuestAccessEvent type Content = GuestAccessEventContent;
impl Event for HistoryVisibilityEvent type Content = HistoryVisibilityEventContent;
impl Event for JoinRulesEvent type Content = JoinRulesEventContent;
impl Event for MemberEvent type Content = MemberEventContent;
impl Event for MessageEvent type Content = MessageEventContent;
impl Event for NameEvent type Content = NameEventContent;
impl Event for PinnedEventsEvent type Content = PinnedEventsContent;
impl Event for PowerLevelsEvent type Content = PowerLevelsEventContent;
impl Event for RedactionEvent type Content = RedactionEventContent;
impl Event for ThirdPartyInviteEvent type Content = ThirdPartyInviteEventContent;
impl Event for TopicEvent type Content = TopicEventContent;
impl Event for TagEvent type Content = TagEventContent;
impl Event for TypingEvent type Content = TypingEventContent;
impl Event for CustomEvent type Content = Value;
impl Event for CustomRoomEvent type Content = Value;
impl Event for CustomStateEvent type Content = Value;