pub struct EncryptedCredentialStore { /* private fields */ }Expand description
Encrypted credential store for disk-based storage.
Implementations§
Trait Implementations§
Source§impl CredentialStore for EncryptedCredentialStore
impl CredentialStore for EncryptedCredentialStore
Source§fn get_credentials(&self) -> WebullResult<Option<Credentials>>
fn get_credentials(&self) -> WebullResult<Option<Credentials>>
Get the stored credentials.
Source§fn store_credentials(&self, credentials: Credentials) -> WebullResult<()>
fn store_credentials(&self, credentials: Credentials) -> WebullResult<()>
Store credentials.
Source§fn clear_credentials(&self) -> WebullResult<()>
fn clear_credentials(&self) -> WebullResult<()>
Clear the stored credentials.
Source§fn get_token(&self) -> WebullResult<Option<AccessToken>>
fn get_token(&self) -> WebullResult<Option<AccessToken>>
Get the stored access token.
Source§fn store_token(&self, token: AccessToken) -> WebullResult<()>
fn store_token(&self, token: AccessToken) -> WebullResult<()>
Store an access token.
Source§fn clear_token(&self) -> WebullResult<()>
fn clear_token(&self) -> WebullResult<()>
Clear the stored token.
Auto Trait Implementations§
impl !Freeze for EncryptedCredentialStore
impl RefUnwindSafe for EncryptedCredentialStore
impl Send for EncryptedCredentialStore
impl Sync for EncryptedCredentialStore
impl Unpin for EncryptedCredentialStore
impl UnwindSafe for EncryptedCredentialStore
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