Enum matrix_sdk_base::store::StateStoreDataKey
source · pub enum StateStoreDataKey<'a> {
SyncToken,
ServerCapabilities,
Filter(&'a str),
UserAvatarUrl(&'a UserId),
RecentlyVisitedRooms(&'a UserId),
UtdHookManagerData,
ComposerDraft(&'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
.
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.
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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