pub struct LocalStorage;Available on crate feature
wasm-js only.Expand description
Implementation of AuthClientStorage.
Implementations§
Source§impl LocalStorage
impl LocalStorage
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new instance of LocalStorage.
Trait Implementations§
Source§impl AuthClientStorage for LocalStorage
impl AuthClientStorage for LocalStorage
Source§fn get<'a>(
&'a mut self,
key: &'a str,
) -> BoxFuture<'a, Result<Option<StoredKey>, StorageError>>
fn get<'a>( &'a mut self, key: &'a str, ) -> BoxFuture<'a, Result<Option<StoredKey>, StorageError>>
Retrieves a stored value by key from the storage backend. Read more
Source§impl Clone for LocalStorage
impl Clone for LocalStorage
Source§fn clone(&self) -> LocalStorage
fn clone(&self) -> LocalStorage
Returns a duplicate 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 Debug for LocalStorage
impl Debug for LocalStorage
Source§impl Default for LocalStorage
impl Default for LocalStorage
Source§fn default() -> LocalStorage
fn default() -> LocalStorage
Returns the “default value” for a type. Read more
Source§impl From<LocalStorage> for Box<dyn AuthClientStorage>
impl From<LocalStorage> for Box<dyn AuthClientStorage>
Source§fn from(storage: LocalStorage) -> Self
fn from(storage: LocalStorage) -> Self
Converts to this type from the input type.
impl Copy for LocalStorage
Auto Trait Implementations§
impl Freeze for LocalStorage
impl RefUnwindSafe for LocalStorage
impl Send for LocalStorage
impl Sync for LocalStorage
impl Unpin for LocalStorage
impl UnwindSafe for LocalStorage
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