Enum ruma_common::events::EventType
source · [−]#[non_exhaustive]
pub enum EventType {
Show 56 variants
Direct,
IdentityServer,
IgnoredUserList,
PushRules,
SecretStorageDefaultKey,
SecretStorageKey(String),
FullyRead,
Tag,
Receipt,
Typing,
CallAnswer,
CallInvite,
CallHangup,
CallCandidates,
KeyVerificationReady,
KeyVerificationStart,
KeyVerificationCancel,
KeyVerificationAccept,
KeyVerificationKey,
KeyVerificationMac,
KeyVerificationDone,
Reaction,
RoomEncrypted,
RoomMessage,
RoomMessageFeedback,
RoomRedaction,
Sticker,
PolicyRuleRoom,
PolicyRuleServer,
PolicyRuleUser,
RoomAliases,
RoomAvatar,
RoomCanonicalAlias,
RoomCreate,
RoomEncryption,
RoomGuestAccess,
RoomHistoryVisibility,
RoomJoinRules,
RoomMember,
RoomName,
RoomPinnedEvents,
RoomPowerLevels,
RoomServerAcl,
RoomThirdPartyInvite,
RoomTombstone,
RoomTopic,
SpaceChild,
SpaceParent,
Dummy,
RoomKey,
RoomKeyRequest,
ForwardedRoomKey,
KeyVerificationRequest,
SecretRequest,
SecretSend,
Presence,
// some variants omitted
}
use a fine-grained event type enum like RoomEventType instead
Expand description
The type of Event
this is.
This type can hold an arbitrary string. To build events with a custom type, convert it
from a string with ::from() / .into()
. To check for events that are not available as a
documented variant here, use its string representation, obtained through .to_string()
.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Direct
use a fine-grained event type enum like RoomEventType instead
m.direct
IdentityServer
use a fine-grained event type enum like RoomEventType instead
m.identity_server
IgnoredUserList
use a fine-grained event type enum like RoomEventType instead
m.ignored_user_list
PushRules
use a fine-grained event type enum like RoomEventType instead
m.push_rules
SecretStorageDefaultKey
use a fine-grained event type enum like RoomEventType instead
m.secret_storage.default_key
SecretStorageKey(String)
use a fine-grained event type enum like RoomEventType instead
m.secret_storage.key.*
FullyRead
use a fine-grained event type enum like RoomEventType instead
m.fully_read
Tag
use a fine-grained event type enum like RoomEventType instead
m.tag
Receipt
use a fine-grained event type enum like RoomEventType instead
m.receipt
Typing
use a fine-grained event type enum like RoomEventType instead
m.typing
CallAnswer
use a fine-grained event type enum like RoomEventType instead
m.call.answer
CallInvite
use a fine-grained event type enum like RoomEventType instead
m.call.invite
CallHangup
use a fine-grained event type enum like RoomEventType instead
m.call.hangup
CallCandidates
use a fine-grained event type enum like RoomEventType instead
m.call.candidates
KeyVerificationReady
use a fine-grained event type enum like RoomEventType instead
m.key.verification.ready
KeyVerificationStart
use a fine-grained event type enum like RoomEventType instead
m.key.verification.start
KeyVerificationCancel
use a fine-grained event type enum like RoomEventType instead
m.key.verification.cancel
KeyVerificationAccept
use a fine-grained event type enum like RoomEventType instead
m.key.verification.accept
KeyVerificationKey
use a fine-grained event type enum like RoomEventType instead
m.key.verification.key
KeyVerificationMac
use a fine-grained event type enum like RoomEventType instead
m.key.verification.mac
KeyVerificationDone
use a fine-grained event type enum like RoomEventType instead
m.key.verification.done
Reaction
use a fine-grained event type enum like RoomEventType instead
m.reaction
RoomEncrypted
use a fine-grained event type enum like RoomEventType instead
m.room.encrypted
RoomMessage
use a fine-grained event type enum like RoomEventType instead
m.room.message
RoomMessageFeedback
use a fine-grained event type enum like RoomEventType instead
m.room.message.feedback
RoomRedaction
use a fine-grained event type enum like RoomEventType instead
m.room.redaction
Sticker
use a fine-grained event type enum like RoomEventType instead
m.sticker
PolicyRuleRoom
use a fine-grained event type enum like RoomEventType instead
m.policy.rule.room
PolicyRuleServer
use a fine-grained event type enum like RoomEventType instead
m.policy.rule.server
PolicyRuleUser
use a fine-grained event type enum like RoomEventType instead
m.policy.rule.user
RoomAliases
use a fine-grained event type enum like RoomEventType instead
m.room.aliases
RoomAvatar
use a fine-grained event type enum like RoomEventType instead
m.room.avatar
RoomCanonicalAlias
use a fine-grained event type enum like RoomEventType instead
m.room.canonical_alias
RoomCreate
use a fine-grained event type enum like RoomEventType instead
m.room.create
RoomEncryption
use a fine-grained event type enum like RoomEventType instead
m.room.encryption
RoomGuestAccess
use a fine-grained event type enum like RoomEventType instead
m.room.guest_access
RoomHistoryVisibility
use a fine-grained event type enum like RoomEventType instead
m.room.history_visibility
RoomJoinRules
use a fine-grained event type enum like RoomEventType instead
m.room.join_rules
RoomMember
use a fine-grained event type enum like RoomEventType instead
m.room.member
RoomName
use a fine-grained event type enum like RoomEventType instead
m.room.name
RoomPinnedEvents
use a fine-grained event type enum like RoomEventType instead
m.room.pinned_events
RoomPowerLevels
use a fine-grained event type enum like RoomEventType instead
m.room.power_levels
RoomServerAcl
use a fine-grained event type enum like RoomEventType instead
m.room.server_acl
RoomThirdPartyInvite
use a fine-grained event type enum like RoomEventType instead
m.room.third_party_invite
RoomTombstone
use a fine-grained event type enum like RoomEventType instead
m.room.tombstone
RoomTopic
use a fine-grained event type enum like RoomEventType instead
m.room.topic
SpaceChild
use a fine-grained event type enum like RoomEventType instead
m.space.child
SpaceParent
use a fine-grained event type enum like RoomEventType instead
m.space.parent
Dummy
use a fine-grained event type enum like RoomEventType instead
m.dummy
RoomKey
use a fine-grained event type enum like RoomEventType instead
m.room_key
RoomKeyRequest
use a fine-grained event type enum like RoomEventType instead
m.room_key_request
ForwardedRoomKey
use a fine-grained event type enum like RoomEventType instead
m.forwarded_room_key
KeyVerificationRequest
use a fine-grained event type enum like RoomEventType instead
m.key.verification.request
SecretRequest
use a fine-grained event type enum like RoomEventType instead
m.secret.request
SecretSend
use a fine-grained event type enum like RoomEventType instead
m.secret.send
Presence
use a fine-grained event type enum like RoomEventType instead
m.presence
Trait Implementations
sourceimpl<'de> Deserialize<'de> for EventType
impl<'de> Deserialize<'de> for EventType
sourcefn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Ord for EventType
impl Ord for EventType
sourceimpl PartialOrd<EventType> for EventType
impl PartialOrd<EventType> for EventType
sourcefn partial_cmp(&self, other: &EventType) -> Option<Ordering>
fn partial_cmp(&self, other: &EventType) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for EventType
impl StructuralEq for EventType
impl StructuralPartialEq for EventType
Auto Trait Implementations
impl RefUnwindSafe for EventType
impl Send for EventType
impl Sync for EventType
impl Unpin for EventType
impl UnwindSafe for EventType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CallHasher for T where
T: Hash + ?Sized,
impl<T> CallHasher for T where
T: Hash + ?Sized,
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more