Enum matrix_sdk_base::store::StateStoreDataKey
source · pub enum StateStoreDataKey<'a> {
SyncToken,
Filter(&'a str),
UserAvatarUrl(&'a UserId),
RecentlyVisitedRooms(&'a UserId),
}
Expand description
A key for key-value data.
Variants§
SyncToken
The sync token.
Filter(&'a str)
A filter with the given name.
UserAvatarUrl(&'a UserId)
Avatar URL
RecentlyVisitedRooms(&'a UserId)
Recently visited room identifiers
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 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.
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> 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
§impl<T> CompatExt for T
impl<T> CompatExt for T
§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
Create a new handle for an Arc value Read more
§fn clone_handle(handle: Handle) -> Handle
fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>