pub struct PairingCodeEntry { /* private fields */ }Expand description
An in-memory one-time pairing code entry. Holds only an Instant expiry —
the code itself is the DashMap key. PROCESS-EPHEMERAL: never persisted.
Implementations§
Source§impl PairingCodeEntry
impl PairingCodeEntry
Sourcepub fn is_expired(&self) -> bool
pub fn is_expired(&self) -> bool
Whether this code has passed its TTL. Pure predicate over Instant —
directly unit-testable by constructing an already-elapsed expiry.
Trait Implementations§
Source§impl Clone for PairingCodeEntry
impl Clone for PairingCodeEntry
Source§fn clone(&self) -> PairingCodeEntry
fn clone(&self) -> PairingCodeEntry
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 moreAuto Trait Implementations§
impl Freeze for PairingCodeEntry
impl RefUnwindSafe for PairingCodeEntry
impl Send for PairingCodeEntry
impl Sync for PairingCodeEntry
impl Unpin for PairingCodeEntry
impl UnsafeUnpin for PairingCodeEntry
impl UnwindSafe for PairingCodeEntry
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