pub enum VarAttrType {
U8 = 1,
U16 = 2,
U32 = 3,
U64 = 4,
String = 5,
Flag = 6,
NulString = 10,
Binary = 11,
}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 VarAttrType
impl VarAttrType
pub fn from_value(value: u64) -> Option<Self>
Trait Implementations§
Source§impl Clone for VarAttrType
impl Clone for VarAttrType
Source§fn clone(&self) -> VarAttrType
fn clone(&self) -> VarAttrType
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 moreSource§impl Debug for VarAttrType
impl Debug for VarAttrType
impl Copy for VarAttrType
Auto Trait Implementations§
impl Freeze for VarAttrType
impl RefUnwindSafe for VarAttrType
impl Send for VarAttrType
impl Sync for VarAttrType
impl Unpin for VarAttrType
impl UnsafeUnpin for VarAttrType
impl UnwindSafe for VarAttrType
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