Enum nispor::EthtoolLinkModeDuplex
source · #[non_exhaustive]pub enum EthtoolLinkModeDuplex {
Half,
Full,
Unknown,
Other(u8),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
source§impl Clone for EthtoolLinkModeDuplex
impl Clone for EthtoolLinkModeDuplex
source§fn clone(&self) -> EthtoolLinkModeDuplex
fn clone(&self) -> EthtoolLinkModeDuplex
Returns a copy 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 EthtoolLinkModeDuplex
impl Debug for EthtoolLinkModeDuplex
source§impl Default for EthtoolLinkModeDuplex
impl Default for EthtoolLinkModeDuplex
source§impl<'de> Deserialize<'de> for EthtoolLinkModeDuplex
impl<'de> Deserialize<'de> for EthtoolLinkModeDuplex
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<&EthtoolLinkModeDuplex> for EthtoolLinkModeDuplex
impl From<&EthtoolLinkModeDuplex> for EthtoolLinkModeDuplex
source§fn from(v: &EthtoolLinkModeDuplex) -> Self
fn from(v: &EthtoolLinkModeDuplex) -> Self
Converts to this type from the input type.
source§impl PartialEq for EthtoolLinkModeDuplex
impl PartialEq for EthtoolLinkModeDuplex
source§fn eq(&self, other: &EthtoolLinkModeDuplex) -> bool
fn eq(&self, other: &EthtoolLinkModeDuplex) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for EthtoolLinkModeDuplex
impl Serialize for EthtoolLinkModeDuplex
impl Eq for EthtoolLinkModeDuplex
impl StructuralPartialEq for EthtoolLinkModeDuplex
Auto Trait Implementations§
impl Freeze for EthtoolLinkModeDuplex
impl RefUnwindSafe for EthtoolLinkModeDuplex
impl Send for EthtoolLinkModeDuplex
impl Sync for EthtoolLinkModeDuplex
impl Unpin for EthtoolLinkModeDuplex
impl UnwindSafe for EthtoolLinkModeDuplex
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