#[non_exhaustive]pub enum TimelineEventType {
Show 54 variants
CallAnswer,
CallInvite,
CallHangup,
CallCandidates,
CallNegotiate,
CallReject,
CallSdpStreamMetadataChanged,
CallSelectAnswer,
KeyVerificationReady,
KeyVerificationStart,
KeyVerificationCancel,
KeyVerificationAccept,
KeyVerificationKey,
KeyVerificationMac,
KeyVerificationDone,
Location,
Message,
PollStart,
UnstablePollStart,
PollResponse,
UnstablePollResponse,
PollEnd,
UnstablePollEnd,
Beacon,
Reaction,
RoomEncrypted,
RoomMessage,
RoomRedaction,
Sticker,
CallNotify,
PolicyRuleRoom,
PolicyRuleServer,
PolicyRuleUser,
RoomAliases,
RoomAvatar,
RoomCanonicalAlias,
RoomCreate,
RoomEncryption,
RoomGuestAccess,
RoomHistoryVisibility,
RoomJoinRules,
RoomMember,
RoomName,
RoomPinnedEvents,
RoomPowerLevels,
RoomServerAcl,
RoomThirdPartyInvite,
RoomTombstone,
RoomTopic,
SpaceChild,
SpaceParent,
BeaconInfo,
CallMember,
MemberHints,
}
Expand description
The type of TimelineEvent
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
CallAnswer
m.call.answer
CallInvite
m.call.invite
CallHangup
m.call.hangup
CallCandidates
m.call.candidates
CallNegotiate
m.call.negotiate
CallReject
m.call.reject
CallSdpStreamMetadataChanged
m.call.sdp_stream_metadata_changed
CallSelectAnswer
m.call.select_answer
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.org.matrix.msc1767.message
PollStart
unstable-msc3381
only.m.poll.start
UnstablePollStart
unstable-msc3381
only.org.matrix.msc3381.poll.start
PollResponse
unstable-msc3381
only.m.poll.response
UnstablePollResponse
unstable-msc3381
only.org.matrix.msc3381.poll.response
PollEnd
unstable-msc3381
only.m.poll.end
UnstablePollEnd
unstable-msc3381
only.org.matrix.msc3381.poll.end
Beacon
unstable-msc3489
only.org.matrix.msc3672.beacon
Reaction
m.reaction
RoomEncrypted
m.room.encrypted
RoomMessage
m.room.message
RoomRedaction
m.room.redaction
Sticker
m.sticker
CallNotify
unstable-msc4075
only.org.matrix.msc4075.call.notify
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
BeaconInfo
unstable-msc3489
only.org.matrix.msc3672.beacon_info
CallMember
unstable-msc3401
only.org.matrix.msc3401.call.member
MemberHints
unstable-msc4171
only.io.element.functional_members
Trait Implementations§
Source§impl Clone for TimelineEventType
impl Clone for TimelineEventType
Source§fn clone(&self) -> TimelineEventType
fn clone(&self) -> TimelineEventType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TimelineEventType
impl Debug for TimelineEventType
Source§impl<'de> Deserialize<'de> for TimelineEventType
impl<'de> Deserialize<'de> for TimelineEventType
Source§fn deserialize<D>(
deserializer: D,
) -> Result<TimelineEventType, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<TimelineEventType, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Source§impl Display for TimelineEventType
impl Display for TimelineEventType
Source§impl From<&str> for TimelineEventType
impl From<&str> for TimelineEventType
Source§fn from(s: &str) -> TimelineEventType
fn from(s: &str) -> TimelineEventType
Source§impl From<MessageLikeEventType> for TimelineEventType
impl From<MessageLikeEventType> for TimelineEventType
Source§fn from(s: MessageLikeEventType) -> TimelineEventType
fn from(s: MessageLikeEventType) -> TimelineEventType
Source§impl From<StateEventType> for TimelineEventType
impl From<StateEventType> for TimelineEventType
Source§fn from(s: StateEventType) -> TimelineEventType
fn from(s: StateEventType) -> TimelineEventType
Source§impl From<String> for TimelineEventType
impl From<String> for TimelineEventType
Source§fn from(s: String) -> TimelineEventType
fn from(s: String) -> TimelineEventType
Source§impl Hash for TimelineEventType
impl Hash for TimelineEventType
Source§impl Ord for TimelineEventType
impl Ord for TimelineEventType
Source§fn cmp(&self, other: &TimelineEventType) -> Ordering
fn cmp(&self, other: &TimelineEventType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for TimelineEventType
impl PartialEq for TimelineEventType
Source§impl PartialOrd for TimelineEventType
impl PartialOrd for TimelineEventType
Source§impl Serialize for TimelineEventType
impl Serialize for TimelineEventType
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
impl Eq for TimelineEventType
impl StructuralPartialEq for TimelineEventType
Auto Trait Implementations§
impl Freeze for TimelineEventType
impl RefUnwindSafe for TimelineEventType
impl Send for TimelineEventType
impl Sync for TimelineEventType
impl Unpin for TimelineEventType
impl UnwindSafe for TimelineEventType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Arc<>
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more