pub struct RevocationRegistry { /* private fields */ }Expand description
Tracks revoked delegation IDs.
All operations are thread-safe via an internal RwLock.
This is an in-memory registry; for persistence, a backing store
should be layered on top.
Implementations§
Source§impl RevocationRegistry
impl RevocationRegistry
Sourcepub fn is_revoked(&self, delegation_id: &str) -> bool
pub fn is_revoked(&self, delegation_id: &str) -> bool
Checks whether a delegation has been revoked.
Sourcepub fn revoke_cascade(&self, ids: &[String])
pub fn revoke_cascade(&self, ids: &[String])
Revokes multiple delegations at once (cascade revocation).
This is typically used after [DelegationTree::revoke] returns a list
of all transitively affected delegation IDs.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RevocationRegistry
impl RefUnwindSafe for RevocationRegistry
impl Send for RevocationRegistry
impl Sync for RevocationRegistry
impl Unpin for RevocationRegistry
impl UnsafeUnpin for RevocationRegistry
impl UnwindSafe for RevocationRegistry
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