pub struct NtpShort(pub u32);Expand description
32-bit NTP short format: 16.16 fixed-point seconds (root delay / dispersion).
Tuple Fields§
§0: u32Implementations§
Source§impl NtpShort
impl NtpShort
pub fn to_seconds(self) -> f64
pub fn from_seconds(s: f64) -> Self
Trait Implementations§
impl Copy for NtpShort
impl Eq for NtpShort
impl StructuralPartialEq for NtpShort
Auto Trait Implementations§
impl Freeze for NtpShort
impl RefUnwindSafe for NtpShort
impl Send for NtpShort
impl Sync for NtpShort
impl Unpin for NtpShort
impl UnsafeUnpin for NtpShort
impl UnwindSafe for NtpShort
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