pub struct KeyringStore { /* private fields */ }Expand description
Secure token storage using system keychain.
Implementations§
Source§impl KeyringStore
impl KeyringStore
Sourcepub fn new() -> Result<Self, KeyringError>
pub fn new() -> Result<Self, KeyringError>
Create a new keyring store.
Sourcepub fn load(&self) -> Result<Token, KeyringError>
pub fn load(&self) -> Result<Token, KeyringError>
Load a token from the keychain.
Sourcepub fn delete(&self) -> Result<(), KeyringError>
pub fn delete(&self) -> Result<(), KeyringError>
Delete the token from the keychain.
Auto Trait Implementations§
impl Freeze for KeyringStore
impl !RefUnwindSafe for KeyringStore
impl Send for KeyringStore
impl Sync for KeyringStore
impl Unpin for KeyringStore
impl !UnwindSafe for KeyringStore
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