pub struct CredentialDispatchGuard<'a> { /* private fields */ }Expand description
Exclusive admission for one in-flight credential-generation dispatch.
Self::complete releases admission after classification. Dropping an
unclassified guard rejects the generation, including async cancellation.
Authentication rejection must be recorded through Self::reject while
the guard is held.
Implementations§
Source§impl CredentialDispatchGuard<'_>
impl CredentialDispatchGuard<'_>
Sourcepub fn reject(&self) -> Result<(), CredentialAttemptError>
pub fn reject(&self) -> Result<(), CredentialAttemptError>
Closes the guarded generation after authentication rejection.
Sourcepub const fn generation(&self) -> CredentialAttemptGeneration
pub const fn generation(&self) -> CredentialAttemptGeneration
Returns the exclusively admitted generation.
Trait Implementations§
Source§impl Debug for CredentialDispatchGuard<'_>
impl Debug for CredentialDispatchGuard<'_>
Source§impl Drop for CredentialDispatchGuard<'_>
impl Drop for CredentialDispatchGuard<'_>
Auto Trait Implementations§
impl<'a> Freeze for CredentialDispatchGuard<'a>
impl<'a> RefUnwindSafe for CredentialDispatchGuard<'a>
impl<'a> Send for CredentialDispatchGuard<'a>
impl<'a> Sync for CredentialDispatchGuard<'a>
impl<'a> Unpin for CredentialDispatchGuard<'a>
impl<'a> UnsafeUnpin for CredentialDispatchGuard<'a>
impl<'a> UnwindSafe for CredentialDispatchGuard<'a>
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