pub trait AuthClientStorage: Send {
// Required methods
fn get(&mut self, key: &str) -> Result<Option<StoredKey>, StorageError>;
fn set(&mut self, key: &str, value: StoredKey) -> Result<(), StorageError>;
fn remove(&mut self, key: &str) -> Result<(), StorageError>;
}Available on crate feature
native only.Expand description
Trait for persisting user authentication data.
Required Methods§
Trait Implementations§
Source§impl From<KeyringStorage> for Box<dyn AuthClientStorage>
Available on crate feature keyring only.
impl From<KeyringStorage> for Box<dyn AuthClientStorage>
Available on crate feature
keyring only.Source§fn from(storage: KeyringStorage) -> Self
fn from(storage: KeyringStorage) -> Self
Converts to this type from the input type.
Source§impl From<PemStorage> for Box<dyn AuthClientStorage>
Available on crate feature pem only.
impl From<PemStorage> for Box<dyn AuthClientStorage>
Available on crate feature
pem only.Source§fn from(storage: PemStorage) -> Self
fn from(storage: PemStorage) -> Self
Converts to this type from the input type.
Implementors§
impl AuthClientStorage for KeyringStorage
Available on crate feature
keyring only.impl AuthClientStorage for PemStorage
Available on crate feature
pem only.