pub enum TimestampMode {
Userspace,
Software,
Hardware,
}Expand description
Timestamping mode currently active on the socket.
Variants§
Userspace
Timestamps are taken in userspace via NtpTimestamp::now().
Software
Kernel software timestamps via SO_TIMESTAMPNS or SO_TIMESTAMPING.
Hardware
Hardware timestamps via SO_TIMESTAMPING with RAW_HARDWARE.
Trait Implementations§
Source§impl Clone for TimestampMode
impl Clone for TimestampMode
Source§fn clone(&self) -> TimestampMode
fn clone(&self) -> TimestampMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TimestampMode
Source§impl Debug for TimestampMode
impl Debug for TimestampMode
impl Eq for TimestampMode
Source§impl PartialEq for TimestampMode
impl PartialEq for TimestampMode
Source§fn eq(&self, other: &TimestampMode) -> bool
fn eq(&self, other: &TimestampMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TimestampMode
Auto Trait Implementations§
impl Freeze for TimestampMode
impl RefUnwindSafe for TimestampMode
impl Send for TimestampMode
impl Sync for TimestampMode
impl Unpin for TimestampMode
impl UnsafeUnpin for TimestampMode
impl UnwindSafe for TimestampMode
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