pub struct TimestampData {
pub timestamp_mode: InterfaceTimestampMode,
pub hardware: Option<Timestamp>,
pub software: Option<Timestamp>,
}Fields§
§timestamp_mode: InterfaceTimestampModeThe timestamping mode requested by the user when creating the socket.
If this was not available, this is set to None.
hardware: Option<Timestamp>The hardware based timestamp returned by the OS
software: Option<Timestamp>The software based timestamp returned by the OS
Implementations§
Source§impl TimestampData
impl TimestampData
Sourcepub fn selected_timestamp(self) -> Option<Timestamp>
pub fn selected_timestamp(self) -> Option<Timestamp>
Returns the timestamp type selected by the requested timestamping mode.
If the requested timestamping mode is None or if the requested timestamp
is not available, this function will return None.
Trait Implementations§
Source§impl Clone for TimestampData
impl Clone for TimestampData
Source§fn clone(&self) -> TimestampData
fn clone(&self) -> TimestampData
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 TimestampData
Source§impl Debug for TimestampData
impl Debug for TimestampData
Source§impl Default for TimestampData
impl Default for TimestampData
Source§fn default() -> TimestampData
fn default() -> TimestampData
Returns the “default value” for a type. Read more
impl Eq for TimestampData
Source§impl Hash for TimestampData
impl Hash for TimestampData
Source§impl PartialEq for TimestampData
impl PartialEq for TimestampData
Source§fn eq(&self, other: &TimestampData) -> bool
fn eq(&self, other: &TimestampData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TimestampData
Auto Trait Implementations§
impl Freeze for TimestampData
impl RefUnwindSafe for TimestampData
impl Send for TimestampData
impl Sync for TimestampData
impl Unpin for TimestampData
impl UnsafeUnpin for TimestampData
impl UnwindSafe for TimestampData
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