pub enum HwtstampSource {
Netdev = 1,
Phylib = 2,
}Available on crate feature
ethtool only.Expand description
Source of the hardware timestamp Enum - defines an integer enumeration, with values for each entry incrementing by 1, (e.g. 0, 1, 2, 3)
Variants§
Netdev = 1
Hardware timestamp comes from a MAC or a device which has MAC and PHY integrated
Phylib = 2
Hardware timestamp comes from one PHY device of the network topology
Implementations§
Source§impl HwtstampSource
impl HwtstampSource
pub fn from_value(value: u64) -> Option<Self>
Trait Implementations§
Source§impl Clone for HwtstampSource
impl Clone for HwtstampSource
Source§fn clone(&self) -> HwtstampSource
fn clone(&self) -> HwtstampSource
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 HwtstampSource
Auto Trait Implementations§
impl Freeze for HwtstampSource
impl RefUnwindSafe for HwtstampSource
impl Send for HwtstampSource
impl Sync for HwtstampSource
impl Unpin for HwtstampSource
impl UnsafeUnpin for HwtstampSource
impl UnwindSafe for HwtstampSource
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