#[non_exhaustive]pub enum AnySyncStateEvent {
Show 27 variants
PolicyRuleRoom(SyncPolicyRuleRoomEvent),
PolicyRuleServer(SyncPolicyRuleServerEvent),
PolicyRuleUser(SyncPolicyRuleUserEvent),
RoomAliases(SyncRoomAliasesEvent),
RoomAvatar(SyncRoomAvatarEvent),
RoomCanonicalAlias(SyncRoomCanonicalAliasEvent),
RoomCreate(SyncRoomCreateEvent),
RoomEncryption(SyncRoomEncryptionEvent),
RoomEncrypted(SyncStateRoomEncryptedEvent),
RoomGuestAccess(SyncRoomGuestAccessEvent),
RoomHistoryVisibility(SyncRoomHistoryVisibilityEvent),
RoomJoinRules(SyncRoomJoinRulesEvent),
RoomLanguage(SyncRoomLanguageEvent),
RoomMember(SyncRoomMemberEvent),
RoomName(SyncRoomNameEvent),
RoomPinnedEvents(SyncRoomPinnedEventsEvent),
RoomPowerLevels(SyncRoomPowerLevelsEvent),
RoomServerAcl(SyncRoomServerAclEvent),
RoomThirdPartyInvite(SyncRoomThirdPartyInviteEvent),
RoomTombstone(SyncRoomTombstoneEvent),
RoomTopic(SyncRoomTopicEvent),
SpaceChild(SyncSpaceChildEvent),
SpaceParent(SyncSpaceParentEvent),
RoomImagePack(SyncRoomImagePackEvent),
BeaconInfo(SyncBeaconInfoEvent),
CallMember(SyncCallMemberEvent),
MemberHints(SyncMemberHintsEvent),
}Expand description
Any state event.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
PolicyRuleRoom(SyncPolicyRuleRoomEvent)
m.policy.rule.room
PolicyRuleServer(SyncPolicyRuleServerEvent)
m.policy.rule.server
PolicyRuleUser(SyncPolicyRuleUserEvent)
m.policy.rule.user
RoomAliases(SyncRoomAliasesEvent)
m.room.aliases
RoomAvatar(SyncRoomAvatarEvent)
m.room.avatar
RoomCanonicalAlias(SyncRoomCanonicalAliasEvent)
m.room.canonical_alias
RoomCreate(SyncRoomCreateEvent)
m.room.create
RoomEncryption(SyncRoomEncryptionEvent)
m.room.encryption
RoomEncrypted(SyncStateRoomEncryptedEvent)
m.room.encrypted
RoomGuestAccess(SyncRoomGuestAccessEvent)
m.room.guest_access
RoomHistoryVisibility(SyncRoomHistoryVisibilityEvent)
m.room.history_visibility
RoomJoinRules(SyncRoomJoinRulesEvent)
m.room.join_rules
RoomLanguage(SyncRoomLanguageEvent)
m.room.language
This variant uses the unstable type org.matrix.msc4334.room.language.
This variant can also be deserialized from the m.room.language type.
RoomMember(SyncRoomMemberEvent)
m.room.member
RoomName(SyncRoomNameEvent)
m.room.name
RoomPinnedEvents(SyncRoomPinnedEventsEvent)
m.room.pinned_events
RoomPowerLevels(SyncRoomPowerLevelsEvent)
m.room.power_levels
RoomServerAcl(SyncRoomServerAclEvent)
m.room.server_acl
RoomThirdPartyInvite(SyncRoomThirdPartyInviteEvent)
m.room.third_party_invite
RoomTombstone(SyncRoomTombstoneEvent)
m.room.tombstone
RoomTopic(SyncRoomTopicEvent)
m.room.topic
SpaceChild(SyncSpaceChildEvent)
m.space.child
SpaceParent(SyncSpaceParentEvent)
m.space.parent
RoomImagePack(SyncRoomImagePackEvent)
m.image_pack
This variant uses the unstable type im.ponies.room_emotes.
This variant can also be deserialized from the m.image_pack type.
BeaconInfo(SyncBeaconInfoEvent)
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(SyncCallMemberEvent)
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(SyncMemberHintsEvent)
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 is_redacted(&self) -> bool
pub fn is_redacted(&self) -> bool
Returns whether this event is redacted.
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<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl From<AnyStateEvent> for AnySyncStateEvent
impl From<AnyStateEvent> for AnySyncStateEvent
Source§fn from(event: AnyStateEvent) -> Self
fn from(event: AnyStateEvent) -> Self
Source§impl From<AnySyncStateEvent> for AnySyncTimelineEvent
impl From<AnySyncStateEvent> for AnySyncTimelineEvent
Source§fn from(c: AnySyncStateEvent) -> Self
fn from(c: AnySyncStateEvent) -> Self
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: SyncBeaconInfoEvent) -> Self
fn from(c: SyncBeaconInfoEvent) -> Self
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: SyncCallMemberEvent) -> Self
fn from(c: SyncCallMemberEvent) -> Self
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: SyncMemberHintsEvent) -> Self
fn from(c: SyncMemberHintsEvent) -> Self
Source§impl From<SyncStateEvent<PolicyRuleRoomEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<PolicyRuleRoomEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncPolicyRuleRoomEvent) -> Self
fn from(c: SyncPolicyRuleRoomEvent) -> Self
Source§impl From<SyncStateEvent<PolicyRuleServerEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<PolicyRuleServerEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncPolicyRuleServerEvent) -> Self
fn from(c: SyncPolicyRuleServerEvent) -> Self
Source§impl From<SyncStateEvent<PolicyRuleUserEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<PolicyRuleUserEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncPolicyRuleUserEvent) -> Self
fn from(c: SyncPolicyRuleUserEvent) -> Self
Source§impl From<SyncStateEvent<RoomAliasesEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<RoomAliasesEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncRoomAliasesEvent) -> Self
fn from(c: SyncRoomAliasesEvent) -> Self
Source§impl From<SyncStateEvent<RoomAvatarEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<RoomAvatarEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncRoomAvatarEvent) -> Self
fn from(c: SyncRoomAvatarEvent) -> Self
Source§impl From<SyncStateEvent<RoomCanonicalAliasEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<RoomCanonicalAliasEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncRoomCanonicalAliasEvent) -> Self
fn from(c: SyncRoomCanonicalAliasEvent) -> Self
Source§impl From<SyncStateEvent<RoomCreateEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<RoomCreateEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncRoomCreateEvent) -> Self
fn from(c: SyncRoomCreateEvent) -> Self
Source§impl From<SyncStateEvent<RoomEncryptionEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<RoomEncryptionEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncRoomEncryptionEvent) -> Self
fn from(c: SyncRoomEncryptionEvent) -> Self
Source§impl From<SyncStateEvent<RoomGuestAccessEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<RoomGuestAccessEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncRoomGuestAccessEvent) -> Self
fn from(c: SyncRoomGuestAccessEvent) -> Self
Source§impl From<SyncStateEvent<RoomHistoryVisibilityEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<RoomHistoryVisibilityEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncRoomHistoryVisibilityEvent) -> Self
fn from(c: SyncRoomHistoryVisibilityEvent) -> Self
Source§impl From<SyncStateEvent<RoomImagePackEventContent>> for AnySyncStateEvent
Available on crate feature unstable-msc2545 only.
impl From<SyncStateEvent<RoomImagePackEventContent>> for AnySyncStateEvent
unstable-msc2545 only.Source§fn from(c: SyncRoomImagePackEvent) -> Self
fn from(c: SyncRoomImagePackEvent) -> Self
Source§impl From<SyncStateEvent<RoomJoinRulesEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<RoomJoinRulesEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncRoomJoinRulesEvent) -> Self
fn from(c: SyncRoomJoinRulesEvent) -> Self
Source§impl From<SyncStateEvent<RoomLanguageEventContent>> for AnySyncStateEvent
Available on crate feature unstable-msc4334 only.
impl From<SyncStateEvent<RoomLanguageEventContent>> for AnySyncStateEvent
unstable-msc4334 only.Source§fn from(c: SyncRoomLanguageEvent) -> Self
fn from(c: SyncRoomLanguageEvent) -> Self
Source§impl From<SyncStateEvent<RoomMemberEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<RoomMemberEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncRoomMemberEvent) -> Self
fn from(c: SyncRoomMemberEvent) -> Self
Source§impl From<SyncStateEvent<RoomNameEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<RoomNameEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncRoomNameEvent) -> Self
fn from(c: SyncRoomNameEvent) -> Self
Source§impl From<SyncStateEvent<RoomPinnedEventsEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<RoomPinnedEventsEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncRoomPinnedEventsEvent) -> Self
fn from(c: SyncRoomPinnedEventsEvent) -> Self
Source§impl From<SyncStateEvent<RoomPowerLevelsEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<RoomPowerLevelsEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncRoomPowerLevelsEvent) -> Self
fn from(c: SyncRoomPowerLevelsEvent) -> Self
Source§impl From<SyncStateEvent<RoomServerAclEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<RoomServerAclEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncRoomServerAclEvent) -> Self
fn from(c: SyncRoomServerAclEvent) -> Self
Source§impl From<SyncStateEvent<RoomThirdPartyInviteEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<RoomThirdPartyInviteEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncRoomThirdPartyInviteEvent) -> Self
fn from(c: SyncRoomThirdPartyInviteEvent) -> Self
Source§impl From<SyncStateEvent<RoomTombstoneEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<RoomTombstoneEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncRoomTombstoneEvent) -> Self
fn from(c: SyncRoomTombstoneEvent) -> Self
Source§impl From<SyncStateEvent<RoomTopicEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<RoomTopicEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncRoomTopicEvent) -> Self
fn from(c: SyncRoomTopicEvent) -> Self
Source§impl From<SyncStateEvent<SpaceChildEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<SpaceChildEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncSpaceChildEvent) -> Self
fn from(c: SyncSpaceChildEvent) -> Self
Source§impl From<SyncStateEvent<SpaceParentEventContent>> for AnySyncStateEvent
impl From<SyncStateEvent<SpaceParentEventContent>> for AnySyncStateEvent
Source§fn from(c: SyncSpaceParentEvent) -> Self
fn from(c: SyncSpaceParentEvent) -> Self
Source§impl From<SyncStateEvent<StateRoomEncryptedEventContent>> for AnySyncStateEvent
Available on crate feature unstable-msc4362 only.
impl From<SyncStateEvent<StateRoomEncryptedEventContent>> for AnySyncStateEvent
unstable-msc4362 only.Source§fn from(c: SyncStateRoomEncryptedEvent) -> Self
fn from(c: SyncStateRoomEncryptedEvent) -> Self
impl JsonCastable<AnySyncStateEvent> for AnyStateEvent
impl<C: StaticStateEventContent> JsonCastable<AnySyncStateEvent> for OriginalStateEvent<C>
impl<C: StaticStateEventContent> JsonCastable<AnySyncStateEvent> for OriginalSyncStateEvent<C>
impl<C: RedactedStateEventContent> JsonCastable<AnySyncStateEvent> for RedactedStateEvent<C>
impl<C: RedactedStateEventContent> JsonCastable<AnySyncStateEvent> for RedactedSyncStateEvent<C>
impl<C: StaticStateEventContent + RedactContent> JsonCastable<AnySyncStateEvent> for StateEvent<C>where
C::Redacted: RedactedStateEventContent,
impl<C: StaticStateEventContent + RedactContent> JsonCastable<AnySyncStateEvent> for SyncStateEvent<C>where
C::Redacted: RedactedStateEventContent,
impl JsonCastable<AnySyncTimelineEvent> for AnySyncStateEvent
impl JsonCastable<Map<String, Value>> 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, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<> Read more