pub struct CredentialTimestamp(/* private fields */);Expand description
Caller-provided monotonic timestamp in seconds.
This value deliberately has no relationship to provider wall-clock time. Callers must obtain every timestamp in one credential lifetime from the same monotonic clock.
Implementations§
Source§impl CredentialTimestamp
impl CredentialTimestamp
Sourcepub const fn from_seconds(seconds: u64) -> Self
pub const fn from_seconds(seconds: u64) -> Self
Wraps caller-provided monotonic seconds without acquiring a clock.
Sourcepub const fn as_seconds(self) -> u64
pub const fn as_seconds(self) -> u64
Returns the caller-provided monotonic seconds.
Trait Implementations§
Source§impl Clone for CredentialTimestamp
impl Clone for CredentialTimestamp
Source§fn clone(&self) -> CredentialTimestamp
fn clone(&self) -> CredentialTimestamp
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 CredentialTimestamp
Source§impl Debug for CredentialTimestamp
impl Debug for CredentialTimestamp
impl Eq for CredentialTimestamp
Source§impl Hash for CredentialTimestamp
impl Hash for CredentialTimestamp
Source§impl Ord for CredentialTimestamp
impl Ord for CredentialTimestamp
Source§fn cmp(&self, other: &CredentialTimestamp) -> Ordering
fn cmp(&self, other: &CredentialTimestamp) -> 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 CredentialTimestamp
impl PartialEq for CredentialTimestamp
Source§impl PartialOrd for CredentialTimestamp
impl PartialOrd for CredentialTimestamp
impl StructuralPartialEq for CredentialTimestamp
Auto Trait Implementations§
impl Freeze for CredentialTimestamp
impl RefUnwindSafe for CredentialTimestamp
impl Send for CredentialTimestamp
impl Sync for CredentialTimestamp
impl Unpin for CredentialTimestamp
impl UnsafeUnpin for CredentialTimestamp
impl UnwindSafe for CredentialTimestamp
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