pub struct ReplayIdentity {
pub key: String,
pub expires_at: f64,
pub single_use: bool,
}Expand description
What a host keeps in its replay store for an accepted credential.
Fields§
§key: StringThe replay key (crate::credentials::replay_key).
expires_at: f64Seconds since the epoch until which the key is kept: validUntil plus the clock skew.
single_use: boolFalse when the credential is valid longer than the replay window: it is meant to be shown many times, so the host neither refuses nor remembers it.
Trait Implementations§
Source§impl Clone for ReplayIdentity
impl Clone for ReplayIdentity
Source§impl Debug for ReplayIdentity
impl Debug for ReplayIdentity
Source§impl PartialEq for ReplayIdentity
impl PartialEq for ReplayIdentity
impl StructuralPartialEq for ReplayIdentity
Auto Trait Implementations§
impl Forget for ReplayIdentity
impl Freeze for ReplayIdentity
impl Move for ReplayIdentity
impl RefUnwindSafe for ReplayIdentity
impl Send for ReplayIdentitywhere
RawVecInner: Send,
impl Sync for ReplayIdentitywhere
RawVecInner: Sync,
impl Unpin for ReplayIdentity
impl UnsafeUnpin for ReplayIdentity
impl UnwindSafe for ReplayIdentitywhere
RawVecInner: UnwindSafe,
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