pub struct NtpTimestamp { /* private fields */ }Implementations§
Source§impl NtpTimestamp
impl NtpTimestamp
pub const ZERO: Self
pub fn now() -> Self
pub fn as_seconds_f64(self) -> f64
pub fn to_fixed_u64(self) -> u64
pub fn to_fixed_u32(self) -> u32
pub fn from_fixed_u64(fixed: u64) -> Self
pub fn from_fixed_u32(fixed: u32) -> Self
Trait Implementations§
Source§impl Clone for NtpTimestamp
impl Clone for NtpTimestamp
Source§fn clone(&self) -> NtpTimestamp
fn clone(&self) -> NtpTimestamp
Returns a duplicate 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 NtpTimestamp
impl Debug for NtpTimestamp
Source§impl Hash for NtpTimestamp
impl Hash for NtpTimestamp
Source§impl Ord for NtpTimestamp
impl Ord for NtpTimestamp
Source§fn cmp(&self, other: &NtpTimestamp) -> Ordering
fn cmp(&self, other: &NtpTimestamp) -> 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 for NtpTimestamp
impl PartialEq for NtpTimestamp
Source§impl PartialOrd for NtpTimestamp
impl PartialOrd for NtpTimestamp
Source§impl Sub for NtpTimestamp
impl Sub for NtpTimestamp
impl Copy for NtpTimestamp
impl Eq for NtpTimestamp
impl StructuralPartialEq for NtpTimestamp
Auto Trait Implementations§
impl Freeze for NtpTimestamp
impl RefUnwindSafe for NtpTimestamp
impl Send for NtpTimestamp
impl Sync for NtpTimestamp
impl Unpin for NtpTimestamp
impl UnsafeUnpin for NtpTimestamp
impl UnwindSafe for NtpTimestamp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.