pub struct Timestamps {
pub system: TimeSpec,
pub hw_trans: TimeSpec,
pub hw_raw: TimeSpec,
}
Expand description
For representing packet timestamps via SO_TIMESTAMPING
interface
Fields§
§system: TimeSpec
software based timestamp, usually one containing data
hw_trans: TimeSpec
legacy timestamp, usually empty
hw_raw: TimeSpec
hardware based timestamp
Trait Implementations§
source§impl Clone for Timestamps
impl Clone for Timestamps
source§fn clone(&self) -> Timestamps
fn clone(&self) -> Timestamps
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 Timestamps
impl Debug for Timestamps
source§impl PartialEq for Timestamps
impl PartialEq for Timestamps
impl Copy for Timestamps
impl Eq for Timestamps
impl StructuralPartialEq for Timestamps
Auto Trait Implementations§
impl Freeze for Timestamps
impl RefUnwindSafe for Timestamps
impl Send for Timestamps
impl Sync for Timestamps
impl Unpin for Timestamps
impl UnwindSafe for Timestamps
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)