pub enum StateStoreDataKey<'a> {
SyncToken,
ServerCapabilities,
Filter(&'a str),
UserAvatarUrl(&'a UserId),
RecentlyVisitedRooms(&'a UserId),
UtdHookManagerData,
ComposerDraft(&'a RoomId),
SeenKnockRequests(&'a RoomId),
}
Expand description
A key for key-value data.
Variants§
SyncToken
The sync token.
ServerCapabilities
The server capabilities,
Filter(&'a str)
A filter with the given name.
UserAvatarUrl(&'a UserId)
Avatar URL
RecentlyVisitedRooms(&'a UserId)
Recently visited room identifiers
UtdHookManagerData
Persistent data for
matrix_sdk_ui::unable_to_decrypt_hook::UtdHookManager
.
ComposerDraft(&'a RoomId)
A composer draft for the room.
To learn more, see ComposerDraft
.
SeenKnockRequests(&'a RoomId)
A list of knock request ids marked as seen in a room.
Implementations§
Source§impl StateStoreDataKey<'_>
impl StateStoreDataKey<'_>
Sourcepub const SYNC_TOKEN: &'static str = "sync_token"
pub const SYNC_TOKEN: &'static str = "sync_token"
Key to use for the SyncToken
variant.
Sourcepub const SERVER_CAPABILITIES: &'static str = "server_capabilities"
pub const SERVER_CAPABILITIES: &'static str = "server_capabilities"
Key to use for the ServerCapabilities
variant.
Sourcepub const USER_AVATAR_URL: &'static str = "user_avatar_url"
pub const USER_AVATAR_URL: &'static str = "user_avatar_url"
Key prefix to use for the UserAvatarUrl
variant.
Sourcepub const RECENTLY_VISITED_ROOMS: &'static str = "recently_visited_rooms"
pub const RECENTLY_VISITED_ROOMS: &'static str = "recently_visited_rooms"
Key prefix to use for the
RecentlyVisitedRooms
variant.
Sourcepub const UTD_HOOK_MANAGER_DATA: &'static str = "utd_hook_manager_data"
pub const UTD_HOOK_MANAGER_DATA: &'static str = "utd_hook_manager_data"
Key to use for the UtdHookManagerData
variant.
Sourcepub const COMPOSER_DRAFT: &'static str = "composer_draft"
pub const COMPOSER_DRAFT: &'static str = "composer_draft"
Key prefix to use for the ComposerDraft
variant.
Sourcepub const SEEN_KNOCK_REQUESTS: &'static str = "seen_knock_requests"
pub const SEEN_KNOCK_REQUESTS: &'static str = "seen_knock_requests"
Key prefix to use for the
SeenKnockRequests
variant.
Trait Implementations§
Source§impl<'a> Clone for StateStoreDataKey<'a>
impl<'a> Clone for StateStoreDataKey<'a>
Source§fn clone(&self) -> StateStoreDataKey<'a>
fn clone(&self) -> StateStoreDataKey<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for StateStoreDataKey<'a>
impl<'a> Debug for StateStoreDataKey<'a>
impl<'a> Copy for StateStoreDataKey<'a>
Auto Trait Implementations§
impl<'a> Freeze for StateStoreDataKey<'a>
impl<'a> RefUnwindSafe for StateStoreDataKey<'a>
impl<'a> Send for StateStoreDataKey<'a>
impl<'a> Sync for StateStoreDataKey<'a>
impl<'a> Unpin for StateStoreDataKey<'a>
impl<'a> UnwindSafe for StateStoreDataKey<'a>
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
Mutably borrows from an owned value. Read more
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, 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>
Consume a handle, getting back the initial
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>
Converts
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>
Converts
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