pub struct FileCredentialStore { /* private fields */ }Implementations§
Source§impl FileCredentialStore
impl FileCredentialStore
pub fn for_server(server_url: &str) -> Self
pub fn from_dir(dir: PathBuf) -> Self
pub fn dir(&self) -> &Path
pub fn load_sticky_redirect_uri(&self) -> Option<String>
pub fn save_sticky_redirect_uri(&self, uri: &str) -> Result<()>
pub fn clear_all(&self) -> Result<()>
pub fn load_sync(&self) -> Result<Option<StoredCredentials>>
Trait Implementations§
Source§impl Clone for FileCredentialStore
impl Clone for FileCredentialStore
Source§fn clone(&self) -> FileCredentialStore
fn clone(&self) -> FileCredentialStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CredentialStore for FileCredentialStore
impl CredentialStore for FileCredentialStore
fn load<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<StoredCredentials>, AuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn save<'life0, 'async_trait>(
&'life0 self,
credentials: StoredCredentials,
) -> Pin<Box<dyn Future<Output = Result<(), AuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn clear<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), AuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for FileCredentialStore
impl RefUnwindSafe for FileCredentialStore
impl Send for FileCredentialStore
impl Sync for FileCredentialStore
impl Unpin for FileCredentialStore
impl UnsafeUnpin for FileCredentialStore
impl UnwindSafe for FileCredentialStore
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