pub struct CredentialGeneration(/* private fields */);Expand description
Monotonic generation of one credential state.
Implementations§
Source§impl CredentialGeneration
impl CredentialGeneration
Sourcepub const fn refresh_handoff(self) -> RefreshHandoff
pub const fn refresh_handoff(self) -> RefreshHandoff
Creates an executor-neutral handoff for compare-and-swap refresh.
Sourcepub fn checked_next(self) -> Result<Self, CredentialGenerationError>
pub fn checked_next(self) -> Result<Self, CredentialGenerationError>
Advances the generation without wrapping.
Trait Implementations§
Source§impl Clone for CredentialGeneration
impl Clone for CredentialGeneration
Source§fn clone(&self) -> CredentialGeneration
fn clone(&self) -> CredentialGeneration
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 moreimpl Copy for CredentialGeneration
Source§impl Debug for CredentialGeneration
impl Debug for CredentialGeneration
impl Eq for CredentialGeneration
Source§impl Hash for CredentialGeneration
impl Hash for CredentialGeneration
Source§impl Ord for CredentialGeneration
impl Ord for CredentialGeneration
Source§fn cmp(&self, other: &CredentialGeneration) -> Ordering
fn cmp(&self, other: &CredentialGeneration) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CredentialGeneration
impl PartialEq for CredentialGeneration
Source§impl PartialOrd for CredentialGeneration
impl PartialOrd for CredentialGeneration
impl StructuralPartialEq for CredentialGeneration
Auto Trait Implementations§
impl Freeze for CredentialGeneration
impl RefUnwindSafe for CredentialGeneration
impl Send for CredentialGeneration
impl Sync for CredentialGeneration
impl Unpin for CredentialGeneration
impl UnsafeUnpin for CredentialGeneration
impl UnwindSafe for CredentialGeneration
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