pub struct CredentialStore { /* private fields */ }Expand description
Both persistence traits share one encrypted/keychain record and one lock, so token refresh and DCR updates cannot overwrite one another in-process.
Implementations§
Trait Implementations§
Source§impl Clone for CredentialStore
impl Clone for CredentialStore
Source§fn clone(&self) -> CredentialStore
fn clone(&self) -> CredentialStore
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 Debug for CredentialStore
impl Debug for CredentialStore
Source§impl OAuthClientRegistrationStore for CredentialStore
impl OAuthClientRegistrationStore for CredentialStore
Source§fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
issuer: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<OAuthClientRegistration>, OAuthClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
issuer: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<OAuthClientRegistration>, OAuthClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Load client credentials registered with
issuer.Source§fn save<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
issuer: &'life1 str,
registration: &'life2 OAuthClientRegistration,
) -> Pin<Box<dyn Future<Output = Result<(), OAuthClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn save<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
issuer: &'life1 str,
registration: &'life2 OAuthClientRegistration,
) -> Pin<Box<dyn Future<Output = Result<(), OAuthClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Save client credentials under their exact authorization-server issuer.
Source§impl OAuthTokenStore for CredentialStore
impl OAuthTokenStore for CredentialStore
Source§fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
binding: &'life1 OAuthTokenBinding,
) -> Pin<Box<dyn Future<Output = Result<Option<OAuthStoredToken>, OAuthClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
binding: &'life1 OAuthTokenBinding,
) -> Pin<Box<dyn Future<Output = Result<Option<OAuthStoredToken>, OAuthClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Load a token set for an exact binding.
Source§fn save<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
binding: &'life1 OAuthTokenBinding,
token: &'life2 OAuthStoredToken,
) -> Pin<Box<dyn Future<Output = Result<(), OAuthClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn save<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
binding: &'life1 OAuthTokenBinding,
token: &'life2 OAuthStoredToken,
) -> Pin<Box<dyn Future<Output = Result<(), OAuthClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Save a token set for an exact binding.
Auto Trait Implementations§
impl !RefUnwindSafe for CredentialStore
impl !UnwindSafe for CredentialStore
impl Freeze for CredentialStore
impl Send for CredentialStore
impl Sync for CredentialStore
impl Unpin for CredentialStore
impl UnsafeUnpin for CredentialStore
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more