pub struct Validity {
pub not_before: i64,
pub not_after: i64,
}Expand description
Validity window of a peer identity (Unix seconds).
Minimal representation without a chrono dep — the actual
time comparisons happen in the authentication plugin. This struct
serves as a transparent pass-through container inside
PeerCapabilities.
Fields§
§not_before: i64Not valid before this point in time (Unix seconds).
not_after: i64Not valid after this point in time (Unix seconds).
Implementations§
Trait Implementations§
impl Copy for Validity
impl Eq for Validity
impl StructuralPartialEq for Validity
Auto Trait Implementations§
impl Freeze for Validity
impl RefUnwindSafe for Validity
impl Send for Validity
impl Sync for Validity
impl Unpin for Validity
impl UnsafeUnpin for Validity
impl UnwindSafe for Validity
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