Enum ruma::events::EventKind [−][src]
#[non_exhaustive]
pub enum EventKind {
GlobalAccountData,
RoomAccountData,
EphemeralRoomData,
Message {
redacted: bool,
},
State {
redacted: bool,
},
ToDevice,
Presence,
}
events
only.Expand description
The “kind” of an event.
This corresponds directly to the event content marker traits.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Global account data event kind.
Room account data event kind.
Ephemeral room event kind.
Message event kind.
Since redacted / non-redacted message events are used in the same places bu have different sets of fields, these two variations are treated as two closely-related event kinds.
Fields of Message
redacted: bool
Redacted variation?
State event kind.
Since redacted / non-redacted state events are used in the same places bu have different sets of fields, these two variations are treated as two closely-related event kinds.
Fields of State
redacted: bool
Redacted variation?
To-device event kind.
Presence event kind.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for EventKind
impl UnwindSafe for EventKind
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more