pub struct BootstrapTokenStore { /* private fields */ }Expand description
A TokenStore implementation that persists tokens to the BootstrapCache.
It maintains a local synchronous cache for take operations (required by TokenStore trait)
and asynchronously updates the BootstrapCache on insert.
Implementations§
Source§impl BootstrapTokenStore
impl BootstrapTokenStore
Sourcepub async fn new(cache: Arc<BootstrapCache>) -> Self
pub async fn new(cache: Arc<BootstrapCache>) -> Self
Create a new BootstrapTokenStore backed by the given cache.
This will initialize the local memory cache with all tokens currently in the BootstrapCache.
Trait Implementations§
Source§impl Debug for BootstrapTokenStore
impl Debug for BootstrapTokenStore
Auto Trait Implementations§
impl !RefUnwindSafe for BootstrapTokenStore
impl !UnwindSafe for BootstrapTokenStore
impl Freeze for BootstrapTokenStore
impl Send for BootstrapTokenStore
impl Sync for BootstrapTokenStore
impl Unpin for BootstrapTokenStore
impl UnsafeUnpin for BootstrapTokenStore
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