pub enum DpipeHeaderId {
Ethernet = 0,
Ipv4 = 1,
Ipv6 = 2,
}Available on crate feature
devlink only.Expand description
Enum - defines an integer enumeration, with values for each entry incrementing by 1, (e.g. 0, 1, 2, 3)
Variants§
Implementations§
Source§impl DpipeHeaderId
impl DpipeHeaderId
pub fn from_value(value: u64) -> Option<Self>
Trait Implementations§
Source§impl Clone for DpipeHeaderId
impl Clone for DpipeHeaderId
Source§fn clone(&self) -> DpipeHeaderId
fn clone(&self) -> DpipeHeaderId
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 DpipeHeaderId
Auto Trait Implementations§
impl Freeze for DpipeHeaderId
impl RefUnwindSafe for DpipeHeaderId
impl Send for DpipeHeaderId
impl Sync for DpipeHeaderId
impl Unpin for DpipeHeaderId
impl UnsafeUnpin for DpipeHeaderId
impl UnwindSafe for DpipeHeaderId
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