Enum ruma_events::EventType
[−]
[src]
pub enum EventType { CallAnswer, CallCandidates, CallHangup, CallInvite, Presence, Receipt, RoomAliases, RoomAvatar, RoomCanonicalAlias, RoomCreate, RoomGuestAccess, RoomHistoryVisibility, RoomJoinRules, RoomMember, RoomMessage, RoomName, RoomPowerLevels, RoomRedaction, RoomThirdPartyInvite, RoomTopic, Tag, Typing, Custom(String), }
The type of an event.
Variants
CallAnswer
m.call.answer
CallCandidates
m.call.candidates
CallHangup
m.call.hangup
CallInvite
m.call.invite
Presence
m.presence
Receipt
m.receipt
RoomAliases
m.room.aliases
RoomAvatar
m.room.avatar
RoomCanonicalAlias
m.room.canonical_alias
RoomCreate
m.room.create
RoomGuestAccess
m.room.guest_access
RoomHistoryVisibility
m.room.history_visibility
RoomJoinRules
m.room.join_rules
RoomMember
m.room.member
RoomMessage
m.room.message
RoomName
m.room.name
RoomPowerLevels
m.room.power_levels
RoomRedaction
m.room.redaction
RoomThirdPartyInvite
m.room.third_party_invite
RoomTopic
m.room.topic
Tag
m.tag
Typing
m.typing
Custom(String)
Any event that is not part of the specification.
Trait Implementations
impl Clone for EventType
[src]
fn clone(&self) -> EventType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for EventType
[src]
impl Eq for EventType
[src]
impl Hash for EventType
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for EventType
[src]
fn eq(&self, __arg_0: &EventType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &EventType) -> bool
This method tests for !=
.
impl Display for EventType
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), FmtError>
Formats the value using the given formatter. Read more
impl<'a> From<&'a str> for EventType
[src]
impl Serialize for EventType
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for EventType
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more