Struct ntp_proto::NtpInstant
source · pub struct NtpInstant { /* private fields */ }Expand description
NtpInstant is a monotonically increasing value modelling the uptime of the NTP service
It is used to validate packets that we send out, and to order internal operations.
Implementations§
Trait Implementations§
source§impl Add<Duration> for NtpInstant
impl Add<Duration> for NtpInstant
source§impl Clone for NtpInstant
impl Clone for NtpInstant
source§fn clone(&self) -> NtpInstant
fn clone(&self) -> NtpInstant
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for NtpInstant
impl Debug for NtpInstant
source§impl Ord for NtpInstant
impl Ord for NtpInstant
source§fn cmp(&self, other: &NtpInstant) -> Ordering
fn cmp(&self, other: &NtpInstant) -> Ordering
1.21.0 · 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<NtpInstant> for NtpInstant
impl PartialEq<NtpInstant> for NtpInstant
source§fn eq(&self, other: &NtpInstant) -> bool
fn eq(&self, other: &NtpInstant) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<NtpInstant> for NtpInstant
impl PartialOrd<NtpInstant> for NtpInstant
source§fn partial_cmp(&self, other: &NtpInstant) -> Option<Ordering>
fn partial_cmp(&self, other: &NtpInstant) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for NtpInstant
impl Eq for NtpInstant
impl StructuralEq for NtpInstant
impl StructuralPartialEq for NtpInstant
Auto Trait Implementations§
impl RefUnwindSafe for NtpInstant
impl Send for NtpInstant
impl Sync for NtpInstant
impl Unpin for NtpInstant
impl UnwindSafe for NtpInstant
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