#[non_exhaustive]pub enum AnySyncStateEvent {
Show 24 variants
PolicyRuleRoom(SyncStateEvent<PolicyRuleRoomEventContent>),
PolicyRuleServer(SyncStateEvent<PolicyRuleServerEventContent>),
PolicyRuleUser(SyncStateEvent<PolicyRuleUserEventContent>),
RoomAliases(SyncStateEvent<RoomAliasesEventContent>),
RoomAvatar(SyncStateEvent<RoomAvatarEventContent>),
RoomCanonicalAlias(SyncStateEvent<RoomCanonicalAliasEventContent>),
RoomCreate(SyncStateEvent<RoomCreateEventContent>),
RoomEncryption(SyncStateEvent<RoomEncryptionEventContent>),
RoomGuestAccess(SyncStateEvent<RoomGuestAccessEventContent>),
RoomHistoryVisibility(SyncStateEvent<RoomHistoryVisibilityEventContent>),
RoomJoinRules(SyncStateEvent<RoomJoinRulesEventContent>),
RoomMember(SyncStateEvent<RoomMemberEventContent>),
RoomName(SyncStateEvent<RoomNameEventContent>),
RoomPinnedEvents(SyncStateEvent<RoomPinnedEventsEventContent>),
RoomPowerLevels(SyncStateEvent<RoomPowerLevelsEventContent>),
RoomServerAcl(SyncStateEvent<RoomServerAclEventContent>),
RoomThirdPartyInvite(SyncStateEvent<RoomThirdPartyInviteEventContent>),
RoomTombstone(SyncStateEvent<RoomTombstoneEventContent>),
RoomTopic(SyncStateEvent<RoomTopicEventContent>),
SpaceChild(SyncStateEvent<SpaceChildEventContent>),
SpaceParent(SyncStateEvent<SpaceParentEventContent>),
BeaconInfo(SyncStateEvent<BeaconInfoEventContent>),
CallMember(SyncStateEvent<CallMemberEventContent>),
MemberHints(SyncStateEvent<MemberHintsEventContent>),
}
Expand description
Any state event.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
PolicyRuleRoom(SyncStateEvent<PolicyRuleRoomEventContent>)
m.policy.rule.room
PolicyRuleServer(SyncStateEvent<PolicyRuleServerEventContent>)
m.policy.rule.server
PolicyRuleUser(SyncStateEvent<PolicyRuleUserEventContent>)
m.policy.rule.user
RoomAliases(SyncStateEvent<RoomAliasesEventContent>)
m.room.aliases
RoomAvatar(SyncStateEvent<RoomAvatarEventContent>)
m.room.avatar
RoomCanonicalAlias(SyncStateEvent<RoomCanonicalAliasEventContent>)
m.room.canonical_alias
RoomCreate(SyncStateEvent<RoomCreateEventContent>)
m.room.create
RoomEncryption(SyncStateEvent<RoomEncryptionEventContent>)
m.room.encryption
RoomGuestAccess(SyncStateEvent<RoomGuestAccessEventContent>)
m.room.guest_access
RoomHistoryVisibility(SyncStateEvent<RoomHistoryVisibilityEventContent>)
m.room.history_visibility
RoomJoinRules(SyncStateEvent<RoomJoinRulesEventContent>)
m.room.join_rules
RoomMember(SyncStateEvent<RoomMemberEventContent>)
m.room.member
RoomName(SyncStateEvent<RoomNameEventContent>)
m.room.name
RoomPinnedEvents(SyncStateEvent<RoomPinnedEventsEventContent>)
m.room.pinned_events
RoomPowerLevels(SyncStateEvent<RoomPowerLevelsEventContent>)
m.room.power_levels
RoomServerAcl(SyncStateEvent<RoomServerAclEventContent>)
m.room.server_acl
RoomThirdPartyInvite(SyncStateEvent<RoomThirdPartyInviteEventContent>)
m.room.third_party_invite
RoomTombstone(SyncStateEvent<RoomTombstoneEventContent>)
m.room.tombstone
RoomTopic(SyncStateEvent<RoomTopicEventContent>)
m.room.topic
SpaceChild(SyncStateEvent<SpaceChildEventContent>)
m.space.child
SpaceParent(SyncStateEvent<SpaceParentEventContent>)
m.space.parent
BeaconInfo(SyncStateEvent<BeaconInfoEventContent>)
unstable-msc3489
only.m.beacon_info
This variant uses the unstable type org.matrix.msc3672.beacon_info
.
This variant can also be deserialized from the m.beacon_info
type.
CallMember(SyncStateEvent<CallMemberEventContent>)
unstable-msc3401
only.m.call.member
This variant uses the unstable type org.matrix.msc3401.call.member
.
This variant can also be deserialized from the m.call.member
type.
MemberHints(SyncStateEvent<MemberHintsEventContent>)
unstable-msc4171
only.m.member_hints
This variant uses the unstable type io.element.functional_members
.
This variant can also be deserialized from the m.member_hints
type.
Implementations§
Source§impl AnySyncStateEvent
impl AnySyncStateEvent
Sourcepub fn event_type(&self) -> StateEventType
pub fn event_type(&self) -> StateEventType
Returns the type
of this event.
Sourcepub fn original_content(&self) -> Option<AnyStateEventContent>
pub fn original_content(&self) -> Option<AnyStateEventContent>
Returns the content for this event if it is not redacted, or None
if it is.
Sourcepub fn content(&self) -> AnyFullStateEventContent
pub fn content(&self) -> AnyFullStateEventContent
Returns the content of this state event.
Sourcepub fn origin_server_ts(&self) -> MilliSecondsSinceUnixEpoch
pub fn origin_server_ts(&self) -> MilliSecondsSinceUnixEpoch
Returns this event’s origin_server_ts
field.
Sourcepub fn transaction_id(&self) -> Option<&TransactionId>
pub fn transaction_id(&self) -> Option<&TransactionId>
Returns this event’s transaction_id
from inside unsigned
, if there is one.
Source§impl AnySyncStateEvent
impl AnySyncStateEvent
Sourcepub fn into_full_event(self, room_id: OwnedRoomId) -> AnyStateEvent
pub fn into_full_event(self, room_id: OwnedRoomId) -> AnyStateEvent
Convert this sync event into a full event (one with a room_id
field).
Trait Implementations§
Source§impl Clone for AnySyncStateEvent
impl Clone for AnySyncStateEvent
Source§fn clone(&self) -> AnySyncStateEvent
fn clone(&self) -> AnySyncStateEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AnySyncStateEvent
impl Debug for AnySyncStateEvent
Source§impl<'de> Deserialize<'de> for AnySyncStateEvent
impl<'de> Deserialize<'de> for AnySyncStateEvent
Source§fn deserialize<D>(
deserializer: D,
) -> Result<AnySyncStateEvent, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<AnySyncStateEvent, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Source§impl From<AnyStateEvent> for AnySyncStateEvent
impl From<AnyStateEvent> for AnySyncStateEvent
Source§fn from(event: AnyStateEvent) -> AnySyncStateEvent
fn from(event: AnyStateEvent) -> AnySyncStateEvent
Source§impl From<AnySyncStateEvent> for AnySyncTimelineEvent
impl From<AnySyncStateEvent> for AnySyncTimelineEvent
Source§fn from(c: AnySyncStateEvent) -> AnySyncTimelineEvent
fn from(c: AnySyncStateEvent) -> AnySyncTimelineEvent
Source§impl From<SyncStateEvent<BeaconInfoEventContent>> for AnySyncStateEvent
Available on crate feature unstable-msc3489
only.
impl From<SyncStateEvent<BeaconInfoEventContent>> for AnySyncStateEvent
unstable-msc3489
only.Source§fn from(c: SyncStateEvent<BeaconInfoEventContent>) -> AnySyncStateEvent
fn from(c: SyncStateEvent<BeaconInfoEventContent>) -> AnySyncStateEvent
Source§impl From<SyncStateEvent<CallMemberEventContent>> for AnySyncStateEvent
Available on crate feature unstable-msc3401
only.
impl From<SyncStateEvent<CallMemberEventContent>> for AnySyncStateEvent
unstable-msc3401
only.Source§fn from(c: SyncStateEvent<CallMemberEventContent>) -> AnySyncStateEvent
fn from(c: SyncStateEvent<CallMemberEventContent>) -> AnySyncStateEvent
Source§impl From<SyncStateEvent<MemberHintsEventContent>> for AnySyncStateEvent
Available on crate feature unstable-msc4171
only.
impl From<SyncStateEvent<MemberHintsEventContent>> for AnySyncStateEvent
unstable-msc4171
only.Source§fn from(c: SyncStateEvent<MemberHintsEventContent>) -> AnySyncStateEvent
fn from(c: SyncStateEvent<MemberHintsEventContent>) -> AnySyncStateEvent
Source§impl From<SyncStateEvent<PolicyRuleRoomEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<PolicyRuleRoomEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncStateEvent<PolicyRuleRoomEventContent>) -> AnySyncStateEvent
fn from(c: SyncStateEvent<PolicyRuleRoomEventContent>) -> AnySyncStateEvent
Source§impl From<SyncStateEvent<PolicyRuleServerEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<PolicyRuleServerEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncStateEvent<PolicyRuleServerEventContent>) -> AnySyncStateEvent
fn from(c: SyncStateEvent<PolicyRuleServerEventContent>) -> AnySyncStateEvent
Source§impl From<SyncStateEvent<PolicyRuleUserEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<PolicyRuleUserEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncStateEvent<PolicyRuleUserEventContent>) -> AnySyncStateEvent
fn from(c: SyncStateEvent<PolicyRuleUserEventContent>) -> AnySyncStateEvent
Source§impl From<SyncStateEvent<RoomAliasesEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<RoomAliasesEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncStateEvent<RoomAliasesEventContent>) -> AnySyncStateEvent
fn from(c: SyncStateEvent<RoomAliasesEventContent>) -> AnySyncStateEvent
Source§impl From<SyncStateEvent<RoomAvatarEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<RoomAvatarEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncStateEvent<RoomAvatarEventContent>) -> AnySyncStateEvent
fn from(c: SyncStateEvent<RoomAvatarEventContent>) -> AnySyncStateEvent
Source§impl From<SyncStateEvent<RoomCanonicalAliasEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<RoomCanonicalAliasEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncStateEvent<RoomCanonicalAliasEventContent>) -> AnySyncStateEvent
fn from(c: SyncStateEvent<RoomCanonicalAliasEventContent>) -> AnySyncStateEvent
Source§impl From<SyncStateEvent<RoomCreateEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<RoomCreateEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncStateEvent<RoomCreateEventContent>) -> AnySyncStateEvent
fn from(c: SyncStateEvent<RoomCreateEventContent>) -> AnySyncStateEvent
Source§impl From<SyncStateEvent<RoomEncryptionEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<RoomEncryptionEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncStateEvent<RoomEncryptionEventContent>) -> AnySyncStateEvent
fn from(c: SyncStateEvent<RoomEncryptionEventContent>) -> AnySyncStateEvent
Source§impl From<SyncStateEvent<RoomGuestAccessEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<RoomGuestAccessEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncStateEvent<RoomGuestAccessEventContent>) -> AnySyncStateEvent
fn from(c: SyncStateEvent<RoomGuestAccessEventContent>) -> AnySyncStateEvent
Source§impl From<SyncStateEvent<RoomHistoryVisibilityEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<RoomHistoryVisibilityEventContent>> for AnySyncStateEvent
Source§fn from(
c: SyncStateEvent<RoomHistoryVisibilityEventContent>,
) -> AnySyncStateEvent
fn from( c: SyncStateEvent<RoomHistoryVisibilityEventContent>, ) -> AnySyncStateEvent
Source§impl From<SyncStateEvent<RoomJoinRulesEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<RoomJoinRulesEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncStateEvent<RoomJoinRulesEventContent>) -> AnySyncStateEvent
fn from(c: SyncStateEvent<RoomJoinRulesEventContent>) -> AnySyncStateEvent
Source§impl From<SyncStateEvent<RoomMemberEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<RoomMemberEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncStateEvent<RoomMemberEventContent>) -> AnySyncStateEvent
fn from(c: SyncStateEvent<RoomMemberEventContent>) -> AnySyncStateEvent
Source§impl From<SyncStateEvent<RoomNameEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<RoomNameEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncStateEvent<RoomNameEventContent>) -> AnySyncStateEvent
fn from(c: SyncStateEvent<RoomNameEventContent>) -> AnySyncStateEvent
Source§impl From<SyncStateEvent<RoomPinnedEventsEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<RoomPinnedEventsEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncStateEvent<RoomPinnedEventsEventContent>) -> AnySyncStateEvent
fn from(c: SyncStateEvent<RoomPinnedEventsEventContent>) -> AnySyncStateEvent
Source§impl From<SyncStateEvent<RoomPowerLevelsEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<RoomPowerLevelsEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncStateEvent<RoomPowerLevelsEventContent>) -> AnySyncStateEvent
fn from(c: SyncStateEvent<RoomPowerLevelsEventContent>) -> AnySyncStateEvent
Source§impl From<SyncStateEvent<RoomServerAclEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<RoomServerAclEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncStateEvent<RoomServerAclEventContent>) -> AnySyncStateEvent
fn from(c: SyncStateEvent<RoomServerAclEventContent>) -> AnySyncStateEvent
Source§impl From<SyncStateEvent<RoomThirdPartyInviteEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<RoomThirdPartyInviteEventContent>> for AnySyncStateEvent
Source§fn from(
c: SyncStateEvent<RoomThirdPartyInviteEventContent>,
) -> AnySyncStateEvent
fn from( c: SyncStateEvent<RoomThirdPartyInviteEventContent>, ) -> AnySyncStateEvent
Source§impl From<SyncStateEvent<RoomTombstoneEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<RoomTombstoneEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncStateEvent<RoomTombstoneEventContent>) -> AnySyncStateEvent
fn from(c: SyncStateEvent<RoomTombstoneEventContent>) -> AnySyncStateEvent
Source§impl From<SyncStateEvent<RoomTopicEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<RoomTopicEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncStateEvent<RoomTopicEventContent>) -> AnySyncStateEvent
fn from(c: SyncStateEvent<RoomTopicEventContent>) -> AnySyncStateEvent
Source§impl From<SyncStateEvent<SpaceChildEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<SpaceChildEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncStateEvent<SpaceChildEventContent>) -> AnySyncStateEvent
fn from(c: SyncStateEvent<SpaceChildEventContent>) -> AnySyncStateEvent
Source§impl From<SyncStateEvent<SpaceParentEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<SpaceParentEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncStateEvent<SpaceParentEventContent>) -> AnySyncStateEvent
fn from(c: SyncStateEvent<SpaceParentEventContent>) -> AnySyncStateEvent
impl SyncEvent for AnySyncStateEvent
Auto Trait Implementations§
impl Freeze for AnySyncStateEvent
impl RefUnwindSafe for AnySyncStateEvent
impl Send for AnySyncStateEvent
impl Sync for AnySyncStateEvent
impl Unpin for AnySyncStateEvent
impl UnwindSafe for AnySyncStateEvent
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,
§impl<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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