pub struct EncryptedFileCredentialStore { /* private fields */ }Implementations§
Source§impl EncryptedFileCredentialStore
impl EncryptedFileCredentialStore
pub fn new(path: PathBuf, passphrase: String) -> Self
pub fn with_scrypt_work_factor(self, log_n: u8) -> Self
pub fn from_settings( path: Option<PathBuf>, password_env: Option<&str>, ) -> Result<Self, OAuthError>
Trait Implementations§
Source§impl OAuthCredentialStorage for EncryptedFileCredentialStore
impl OAuthCredentialStorage for EncryptedFileCredentialStore
fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, OAuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: Value,
) -> Pin<Box<dyn Future<Output = Result<(), OAuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), OAuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn contains(&self, key: &str) -> bool
fn load_credential<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<OAuthCredential>, OAuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save_credential<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
credential: OAuthCredential,
) -> Pin<Box<dyn Future<Output = Result<(), OAuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for EncryptedFileCredentialStore
impl RefUnwindSafe for EncryptedFileCredentialStore
impl Send for EncryptedFileCredentialStore
impl Sync for EncryptedFileCredentialStore
impl Unpin for EncryptedFileCredentialStore
impl UnsafeUnpin for EncryptedFileCredentialStore
impl UnwindSafe for EncryptedFileCredentialStore
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