Enum ruma_common::events::RoomEventType
source · [−]pub enum RoomEventType {
Show 52 variants
Audio,
CallAnswer,
CallInvite,
CallHangup,
CallCandidates,
CallNegotiate,
CallReject,
CallSelectAnswer,
Emote,
File,
Image,
KeyVerificationReady,
KeyVerificationStart,
KeyVerificationCancel,
KeyVerificationAccept,
KeyVerificationKey,
KeyVerificationMac,
KeyVerificationDone,
Location,
Message,
Notice,
PollStart,
PollResponse,
PollEnd,
Reaction,
RoomEncrypted,
RoomMessage,
RoomRedaction,
Sticker,
Video,
Voice,
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 RoomEvent 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
Audio
unstable-msc3246 only.m.audio
CallAnswer
m.call.answer
CallInvite
m.call.invite
CallHangup
m.call.hangup
CallCandidates
m.call.candidates
CallNegotiate
unstable-msc2746 only.m.call.negotiate
CallReject
unstable-msc2746 only.m.call.reject
CallSelectAnswer
unstable-msc2746 only.m.call.select_answer
Emote
unstable-msc1767 only.m.emote
File
unstable-msc3551 only.m.file
Image
unstable-msc3552 only.m.image
KeyVerificationReady
m.key.verification.ready
KeyVerificationStart
m.key.verification.start
KeyVerificationCancel
m.key.verification.cancel
KeyVerificationAccept
m.key.verification.accept
KeyVerificationKey
m.key.verification.key
KeyVerificationMac
m.key.verification.mac
KeyVerificationDone
m.key.verification.done
Location
unstable-msc3488 only.m.location
Message
unstable-msc1767 only.m.message
Notice
unstable-msc1767 only.m.notice
PollStart
unstable-msc3381 only.org.matrix.msc3381.poll.start
PollResponse
unstable-msc3381 only.org.matrix.msc3381.poll.response
PollEnd
unstable-msc3381 only.org.matrix.msc3381.poll.end
Reaction
unstable-msc2677 only.m.reaction
RoomEncrypted
m.room.encrypted
RoomMessage
m.room.message
RoomRedaction
m.room.redaction
Sticker
m.sticker
Video
unstable-msc3553 only.m.video
Voice
unstable-msc3245 only.m.voice
PolicyRuleRoom
m.policy.rule.room
PolicyRuleServer
m.policy.rule.server
PolicyRuleUser
m.policy.rule.user
RoomAliases
m.room.aliases
RoomAvatar
m.room.avatar
RoomCanonicalAlias
m.room.canonical_alias
RoomCreate
m.room.create
RoomEncryption
m.room.encryption
RoomGuestAccess
m.room.guest_access
RoomHistoryVisibility
m.room.history_visibility
RoomJoinRules
m.room.join_rules
RoomMember
m.room.member
RoomName
m.room.name
RoomPinnedEvents
m.room.pinned_events
RoomPowerLevels
m.room.power_levels
RoomServerAcl
m.room.server_acl
RoomThirdPartyInvite
m.room.third_party_invite
RoomTombstone
m.room.tombstone
RoomTopic
m.room.topic
SpaceChild
m.space.child
SpaceParent
m.space.parent
Trait Implementations
sourceimpl Clone for RoomEventType
impl Clone for RoomEventType
sourcefn clone(&self) -> RoomEventType
fn clone(&self) -> RoomEventType
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source. Read moresourceimpl Debug for RoomEventType
impl Debug for RoomEventType
sourceimpl<'de> Deserialize<'de> for RoomEventType
impl<'de> Deserialize<'de> for RoomEventType
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>,
sourceimpl Display for RoomEventType
impl Display for RoomEventType
sourceimpl From<&str> for RoomEventType
impl From<&str> for RoomEventType
sourceimpl From<MessageLikeEventType> for RoomEventType
impl From<MessageLikeEventType> for RoomEventType
sourcefn from(s: MessageLikeEventType) -> Self
fn from(s: MessageLikeEventType) -> Self
sourceimpl From<StateEventType> for RoomEventType
impl From<StateEventType> for RoomEventType
sourcefn from(s: StateEventType) -> Self
fn from(s: StateEventType) -> Self
sourceimpl From<String> for RoomEventType
impl From<String> for RoomEventType
sourceimpl Hash for RoomEventType
impl Hash for RoomEventType
sourceimpl Ord for RoomEventType
impl Ord for RoomEventType
sourcefn cmp(&self, other: &RoomEventType) -> Ordering
fn cmp(&self, other: &RoomEventType) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
sourceimpl PartialEq<RoomEventType> for RoomEventType
impl PartialEq<RoomEventType> for RoomEventType
sourcefn eq(&self, other: &RoomEventType) -> bool
fn eq(&self, other: &RoomEventType) -> bool
sourceimpl PartialOrd<RoomEventType> for RoomEventType
impl PartialOrd<RoomEventType> for RoomEventType
sourcefn partial_cmp(&self, other: &RoomEventType) -> Option<Ordering>
fn partial_cmp(&self, other: &RoomEventType) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl Serialize for RoomEventType
impl Serialize for RoomEventType
impl Eq for RoomEventType
impl StructuralEq for RoomEventType
impl StructuralPartialEq for RoomEventType
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.