pub enum PortFnOpstate {
Detached = 0,
Attached = 1,
}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 PortFnOpstate
impl PortFnOpstate
pub fn from_value(value: u64) -> Option<Self>
Trait Implementations§
Source§impl Clone for PortFnOpstate
impl Clone for PortFnOpstate
Source§fn clone(&self) -> PortFnOpstate
fn clone(&self) -> PortFnOpstate
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 moreSource§impl Debug for PortFnOpstate
impl Debug for PortFnOpstate
impl Copy for PortFnOpstate
Auto Trait Implementations§
impl Freeze for PortFnOpstate
impl RefUnwindSafe for PortFnOpstate
impl Send for PortFnOpstate
impl Sync for PortFnOpstate
impl Unpin for PortFnOpstate
impl UnsafeUnpin for PortFnOpstate
impl UnwindSafe for PortFnOpstate
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