pub struct TokenCache {
pub default_expiration_secs: usize,
/* private fields */
}Expand description
A cache to hold authentication tokens
Fields§
§default_expiration_secs: usizeDefault token expiration in seconds, to use when claim doesn’t specify a value
Implementations§
Source§impl TokenCache
impl TokenCache
Sourcepub async fn insert(
&self,
reference: &Reference,
op: RegistryOperation,
token: RegistryTokenType,
)
pub async fn insert( &self, reference: &Reference, op: RegistryOperation, token: RegistryTokenType, )
Insert a token corresponding to reference and operation keys
Trait Implementations§
Source§impl Clone for TokenCache
impl Clone for TokenCache
Source§fn clone(&self) -> TokenCache
fn clone(&self) -> TokenCache
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for TokenCache
impl !UnwindSafe for TokenCache
impl Freeze for TokenCache
impl Send for TokenCache
impl Sync for TokenCache
impl Unpin for TokenCache
impl UnsafeUnpin for TokenCache
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