pub enum StorageBackend {
Browser(BrowserStorage),
Memory,
}Variants§
Browser(BrowserStorage)
Memory
Implementations§
Source§impl StorageBackend
impl StorageBackend
pub async fn initiate_with_local_storage( environment: Option<&str>, username: &str, password: Option<&str>, ) -> SecureStringResult<Self>
pub async fn hard_reset(&self) -> SecureStringResult<()>
pub async fn validate_password(&self) -> SecureStringResult<bool>
pub async fn change_password( &self, environment: Option<&str>, old_password: &str, new_password: &str, ) -> SecureStringResult<()>
Trait Implementations§
Source§impl Clone for StorageBackend
impl Clone for StorageBackend
Source§fn clone(&self) -> StorageBackend
fn clone(&self) -> StorageBackend
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 StorageBackend
impl Debug for StorageBackend
Source§impl PartialEq for StorageBackend
impl PartialEq for StorageBackend
impl StructuralPartialEq for StorageBackend
Auto Trait Implementations§
impl Freeze for StorageBackend
impl RefUnwindSafe for StorageBackend
impl !Send for StorageBackend
impl !Sync for StorageBackend
impl Unpin for StorageBackend
impl UnwindSafe for StorageBackend
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