[−][src]Enum pcap::TimestampType
Timestamp types
Not all systems and interfaces will necessarily support all of these.
Note that time stamps synchronized with the system clock can go backwards, as the system clock can go backwards. If a clock is not in sync with the system clock, that could be because the system clock isn't keeping accurate time, because the other clock isn't keeping accurate time, or both.
Note that host-provided time stamps generally correspond to the time when the time-stamping code sees the packet; this could be some unknown amount of time after the first or last bit of the packet is received by the network adapter, due to batching of interrupts for packet arrival, queueing delays, etc..
Variants
Timestamps are provided by the host machine, rather than by the capture device.
The characteristics of the timestamp are unknown.
A timestamp provided by the host machine that is low precision but relatively cheap to fetch.
This is normally done using the system clock, so it's normally synchornized with times you'd fetch from system calls.
A timestamp provided by the host machine that is high precision. It might be more expensive to fetch.
The timestamp might or might not be synchronized with the system clock, and might have problems with time stamps for packets received on different CPUs, depending on the platform.
The timestamp is a high-precision time stamp supplied by the capture device.
The timestamp is synchronized with the system clock.
The timestamp is a high-precision time stamp supplied by the capture device.
The timestamp is not synchronized with the system clock.
Trait Implementations
impl Clone for TimestampType
[src]
pub fn clone(&self) -> TimestampType
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for TimestampType
[src]
impl Debug for TimestampType
[src]
impl Eq for TimestampType
[src]
impl PartialEq<TimestampType> for TimestampType
[src]
pub fn eq(&self, other: &TimestampType) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for TimestampType
[src]
impl StructuralPartialEq for TimestampType
[src]
Auto Trait Implementations
impl RefUnwindSafe for TimestampType
[src]
impl Send for TimestampType
[src]
impl Sync for TimestampType
[src]
impl Unpin for TimestampType
[src]
impl UnwindSafe for TimestampType
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,