pub enum DlPortFunction<'a> {
HwAddr(&'a [u8]),
State(u8),
Opstate(u8),
Caps(PushBuiltinBitfield32),
}Available on crate feature
devlink only.Variants§
HwAddr(&'a [u8])
State(u8)
Associated type: “PortFnState” (enum)
Opstate(u8)
Associated type: “PortFnOpstate” (enum)
Caps(PushBuiltinBitfield32)
Associated type: “PortFnAttrCap” (1 bit per enumeration)
Implementations§
Source§impl DlPortFunction<'_>
impl DlPortFunction<'_>
pub fn new<'a>(buf: &'a [u8]) -> IterableDlPortFunction<'a> ⓘ
Trait Implementations§
Source§impl<'a> Clone for DlPortFunction<'a>
impl<'a> Clone for DlPortFunction<'a>
Source§fn clone(&self) -> DlPortFunction<'a>
fn clone(&self) -> DlPortFunction<'a>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<'a> Freeze for DlPortFunction<'a>
impl<'a> RefUnwindSafe for DlPortFunction<'a>
impl<'a> Send for DlPortFunction<'a>
impl<'a> Sync for DlPortFunction<'a>
impl<'a> Unpin for DlPortFunction<'a>
impl<'a> UnwindSafe for DlPortFunction<'a>
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