Enum ruma::events::RoomEventType [−][src]
pub enum RoomEventType {}Show variants
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, // some variants omitted
events
only.Expand description
The type of RoomEventType
this is.
This type can hold an arbitrary string. To check for events that are not available as a
documented variant here, use its string representation, obtained through .as_str()
.
Variants
m.call.answer
m.call.invite
m.call.hangup
m.call.candidates
m.key.verification.ready
m.key.verification.start
m.key.verification.cancel
m.key.verification.accept
m.key.verification.key
m.key.verification.mac
m.key.verification.done
m.reaction
m.room.encrypted
m.room.message
m.room.message.feedback
m.room.redaction
m.sticker
m.policy.rule.room
m.policy.rule.server
m.policy.rule.user
m.room.aliases
m.room.avatar
m.room.canonical_alias
m.room.create
m.room.encryption
m.room.guest_access
m.room.history_visibility
m.room.join_rules
m.room.member
m.room.name
m.room.pinned_events
m.room.power_levels
m.room.server_acl
m.room.third_party_invite
m.room.tombstone
m.room.topic
m.space.child
m.space.parent
Implementations
Trait Implementations
pub fn deserialize<D>(
deserializer: D
) -> Result<RoomEventType, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
pub fn deserialize<D>(
deserializer: D
) -> Result<RoomEventType, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for RoomEventType
impl Send for RoomEventType
impl Sync for RoomEventType
impl Unpin for RoomEventType
impl UnwindSafe for RoomEventType
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