Enum ruma_events::collections::all::Event
[−]
[src]
pub enum Event { CallAnswer(AnswerEvent), CallCandidates(CandidatesEvent), CallHangup(HangupEvent), CallInvite(InviteEvent), Presence(PresenceEvent), Receipt(ReceiptEvent), RoomAliases(AliasesEvent), RoomAvatar(AvatarEvent), RoomCanonicalAlias(CanonicalAliasEvent), RoomCreate(CreateEvent), RoomGuestAccess(GuestAccessEvent), RoomHistoryVisibility(HistoryVisibilityEvent), RoomJoinRules(JoinRulesEvent), RoomMember(MemberEvent), RoomMessage(MessageEvent), RoomName(NameEvent), RoomPowerLevels(PowerLevelsEvent), RoomRedaction(RedactionEvent), RoomThirdPartyInvite(ThirdPartyInviteEvent), RoomTopic(TopicEvent), Tag(TagEvent), Typing(TypingEvent), Custom(CustomEvent), CustomRoom(CustomRoomEvent), CustomState(CustomStateEvent), }
A basic event, room event, or state event.
Variants
CallAnswer(AnswerEvent)
m.call.answer
CallCandidates(CandidatesEvent)
m.call.candidates
CallHangup(HangupEvent)
m.call.hangup
CallInvite(InviteEvent)
m.call.invite
Presence(PresenceEvent)
m.presence
Receipt(ReceiptEvent)
m.receipt
RoomAliases(AliasesEvent)
m.room.aliases
RoomAvatar(AvatarEvent)
m.room.avatar
RoomCanonicalAlias(CanonicalAliasEvent)
m.room.canonical_alias
RoomCreate(CreateEvent)
m.room.create
RoomGuestAccess(GuestAccessEvent)
m.room.guest_access
RoomHistoryVisibility(HistoryVisibilityEvent)
m.room.history_visibility
RoomJoinRules(JoinRulesEvent)
m.room.join_rules
RoomMember(MemberEvent)
m.room.member
RoomMessage(MessageEvent)
m.room.message
RoomName(NameEvent)
m.room.name
RoomPowerLevels(PowerLevelsEvent)
m.room.power_levels
RoomRedaction(RedactionEvent)
m.room.redaction
RoomThirdPartyInvite(ThirdPartyInviteEvent)
m.room.third_party_invite
RoomTopic(TopicEvent)
m.room.topic
Tag(TagEvent)
m.tag
Typing(TypingEvent)
m.typing
Custom(CustomEvent)
Any basic event that is not part of the specification.
CustomRoom(CustomRoomEvent)
Any room event that is not part of the specification.
CustomState(CustomStateEvent)
Any state event that is not part of the specification.
Trait Implementations
impl Clone for Event
[src]
fn clone(&self) -> Event
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 Event
[src]
impl Serialize for Event
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where S: Serializer
Serialize this value into the given Serde serializer. Read more
impl Deserialize for Event
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where D: Deserializer
Deserialize this value from the given Serde deserializer. Read more
impl From<AnswerEvent> for Event
[src]
fn from(event: AnswerEvent) -> Self
Performs the conversion.
impl From<CandidatesEvent> for Event
[src]
fn from(event: CandidatesEvent) -> Self
Performs the conversion.
impl From<HangupEvent> for Event
[src]
fn from(event: HangupEvent) -> Self
Performs the conversion.
impl From<InviteEvent> for Event
[src]
fn from(event: InviteEvent) -> Self
Performs the conversion.
impl From<PresenceEvent> for Event
[src]
fn from(event: PresenceEvent) -> Self
Performs the conversion.
impl From<ReceiptEvent> for Event
[src]
fn from(event: ReceiptEvent) -> Self
Performs the conversion.
impl From<AliasesEvent> for Event
[src]
fn from(event: AliasesEvent) -> Self
Performs the conversion.
impl From<AvatarEvent> for Event
[src]
fn from(event: AvatarEvent) -> Self
Performs the conversion.
impl From<CanonicalAliasEvent> for Event
[src]
fn from(event: CanonicalAliasEvent) -> Self
Performs the conversion.
impl From<CreateEvent> for Event
[src]
fn from(event: CreateEvent) -> Self
Performs the conversion.
impl From<GuestAccessEvent> for Event
[src]
fn from(event: GuestAccessEvent) -> Self
Performs the conversion.
impl From<HistoryVisibilityEvent> for Event
[src]
fn from(event: HistoryVisibilityEvent) -> Self
Performs the conversion.
impl From<JoinRulesEvent> for Event
[src]
fn from(event: JoinRulesEvent) -> Self
Performs the conversion.
impl From<MemberEvent> for Event
[src]
fn from(event: MemberEvent) -> Self
Performs the conversion.
impl From<MessageEvent> for Event
[src]
fn from(event: MessageEvent) -> Self
Performs the conversion.
impl From<NameEvent> for Event
[src]
impl From<PowerLevelsEvent> for Event
[src]
fn from(event: PowerLevelsEvent) -> Self
Performs the conversion.
impl From<RedactionEvent> for Event
[src]
fn from(event: RedactionEvent) -> Self
Performs the conversion.
impl From<ThirdPartyInviteEvent> for Event
[src]
fn from(event: ThirdPartyInviteEvent) -> Self
Performs the conversion.
impl From<TopicEvent> for Event
[src]
fn from(event: TopicEvent) -> Self
Performs the conversion.
impl From<TagEvent> for Event
[src]
impl From<TypingEvent> for Event
[src]
fn from(event: TypingEvent) -> Self
Performs the conversion.
impl From<CustomEvent> for Event
[src]
fn from(event: CustomEvent) -> Self
Performs the conversion.
impl From<CustomRoomEvent> for Event
[src]
fn from(event: CustomRoomEvent) -> Self
Performs the conversion.
impl From<CustomStateEvent> for Event
[src]
fn from(event: CustomStateEvent) -> Self
Performs the conversion.