pub struct MemoryStore { /* private fields */ }
Expand description

In-Memory, non-persistent implementation of the StateStore

Default if no other is configured at startup.

Implementations

Create a new empty MemoryStore

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Save the given filter id under the given name. Read more
Save the set of state changes in the store.
Get the filter id that was stored under the given filter name. Read more
Get the last stored sync token.
Get the stored presence event for the given user. Read more
Get a state event out of the state store. Read more
Get a list of state events for a given room and StateEventType. Read more
Get the current profile for the given user in the given room. Read more
Get the MemberEvent for the given state key in the given room id. Read more
Get all the user ids of members for a given room, for stripped and regular rooms alike. Read more
Get all the user ids of members that are in the invited state for a given room, for stripped and regular rooms alike. Read more
Get all the user ids of members that are in the joined state for a given room, for stripped and regular rooms alike. Read more
Get all the pure RoomInfos the store knows about.
Get all the pure RoomInfos the store knows about.
Get all the users that use the given display name in the given room. Read more
Get an event out of the account data store. Read more
Get an event out of the room account data store. Read more
Get an event out of the user room receipt store. Read more
Get events out of the event room receipt store. Read more
Get arbitrary data from the custom store Read more
Put arbitrary data into the custom store Read more
Add a media file’s content in the media store. Read more
Get a media file’s content out of the media store. Read more
Removes a media file’s content from the media store. Read more
Removes all the media files’ content associated to an MxcUri from the media store. Read more
Removes a room and all elements associated from the state store. Read more
Available on crate feature experimental-timeline only.
Get a stream of the stored timeline 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
Get a specific state event of statically-known type. Read more
Get a specific state event of statically-known type. Read more
Get a list of state events of a statically-known type for a given room. Read more
Get an event of a statically-known type from the account data store.
Get an event of a statically-known type from the room account data store. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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