Expand description

Store state changes and pass them to the StateStore.

Fields

sync_token: Option<String>

The sync token that relates to this update.

session: Option<Session>

A user session, containing an access token and information about the associated user account.

account_data: BTreeMap<GlobalAccountDataEventType, Raw<AnyGlobalAccountDataEvent>>

A mapping of event type string to AnyBasicEvent.

presence: BTreeMap<OwnedUserId, Raw<PresenceEvent>>

A mapping of UserId to PresenceEvent.

members: BTreeMap<OwnedRoomId, BTreeMap<OwnedUserId, SyncRoomMemberEvent>>

A mapping of RoomId to a map of users and their SyncRoomMemberEvent.

profiles: BTreeMap<OwnedRoomId, BTreeMap<OwnedUserId, MinimalRoomMemberEvent>>

A mapping of RoomId to a map of users and their MinimalRoomMemberEvent.

state: BTreeMap<OwnedRoomId, BTreeMap<StateEventType, BTreeMap<String, Raw<AnySyncStateEvent>>>>

A mapping of RoomId to a map of event type string to a state key and AnySyncStateEvent.

room_account_data: BTreeMap<OwnedRoomId, BTreeMap<RoomAccountDataEventType, Raw<AnyRoomAccountDataEvent>>>

A mapping of RoomId to a map of event type string to AnyBasicEvent.

room_infos: BTreeMap<OwnedRoomId, RoomInfo>

A map of RoomId to RoomInfo.

receipts: BTreeMap<OwnedRoomId, ReceiptEventContent>

A map of RoomId to ReceiptEventContent.

stripped_state: BTreeMap<OwnedRoomId, BTreeMap<StateEventType, BTreeMap<String, Raw<AnyStrippedStateEvent>>>>

A mapping of RoomId to a map of event type to a map of state key to AnyStrippedStateEvent.

stripped_members: BTreeMap<OwnedRoomId, BTreeMap<OwnedUserId, StrippedRoomMemberEvent>>

A mapping of RoomId to a map of users and their StrippedRoomMemberEvent.

stripped_room_infos: BTreeMap<OwnedRoomId, RoomInfo>

A map of RoomId to RoomInfo for stripped rooms (e.g. for invites or while knocking)

ambiguity_maps: BTreeMap<OwnedRoomId, BTreeMap<String, BTreeSet<OwnedUserId>>>

A map from room id to a map of a display name and a set of user ids that share that display name in the given room.

notifications: BTreeMap<OwnedRoomId, Vec<Notification>>

A map of RoomId to a vector of Notifications

Implementations

Create a new StateChanges struct with the given sync_token.

Update the StateChanges struct with the given PresenceEvent.

Update the StateChanges struct with the given RoomInfo.

Update the StateChanges struct with the given RoomInfo.

Update the StateChanges struct with the given AnyBasicEvent.

Update the StateChanges struct with the given room with a new AnyBasicEvent.

Update the StateChanges struct with the given room with a new StrippedMemberEvent.

Update the StateChanges struct with the given room with a new AnySyncStateEvent.

Update the StateChanges struct with the given room with a new Notification.

Update the StateChanges struct with the given room with a new Receipts.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more