pub struct InMemoryRevocationStore { /* private fields */ }Expand description
In-memory revocation store backed by a RwLock<HashSet>.
Suitable for development, testing, and single-instance deployments.
For production multi-node deployments, use a database-backed
implementation of RevocationStore.
Implementations§
Trait Implementations§
Source§impl Default for InMemoryRevocationStore
impl Default for InMemoryRevocationStore
Source§impl RevocationStore for InMemoryRevocationStore
impl RevocationStore for InMemoryRevocationStore
Source§fn revoke<'life0, 'life1, 'async_trait>(
&'life0 self,
delegation_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), DelegationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn revoke<'life0, 'life1, 'async_trait>(
&'life0 self,
delegation_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), DelegationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Mark a delegation as revoked. Read more
Source§fn is_revoked<'life0, 'life1, 'async_trait>(
&'life0 self,
delegation_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool, DelegationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn is_revoked<'life0, 'life1, 'async_trait>(
&'life0 self,
delegation_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool, DelegationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check whether a delegation has been revoked.
Source§fn revoke_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
ids: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Result<(), DelegationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn revoke_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
ids: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Result<(), DelegationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Revoke multiple delegations at once (batch/cascade revocation). Read more
Auto Trait Implementations§
impl !Freeze for InMemoryRevocationStore
impl RefUnwindSafe for InMemoryRevocationStore
impl Send for InMemoryRevocationStore
impl Sync for InMemoryRevocationStore
impl Unpin for InMemoryRevocationStore
impl UnsafeUnpin for InMemoryRevocationStore
impl UnwindSafe for InMemoryRevocationStore
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