Struct nispor::EthtoolLinkModeInfo
source · #[non_exhaustive]pub struct EthtoolLinkModeInfo {
pub auto_negotiate: bool,
pub ours: Vec<String>,
pub peer: Option<Vec<String>>,
pub speed: u32,
pub duplex: EthtoolLinkModeDuplex,
pub controller_subordinate_cfg: Option<u8>,
pub controller_subordinate_state: Option<u8>,
pub lanes: Option<u32>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.auto_negotiate: bool
§ours: Vec<String>
§peer: Option<Vec<String>>
§speed: u32
§duplex: EthtoolLinkModeDuplex
§controller_subordinate_cfg: Option<u8>
§controller_subordinate_state: Option<u8>
§lanes: Option<u32>
Trait Implementations§
source§impl Clone for EthtoolLinkModeInfo
impl Clone for EthtoolLinkModeInfo
source§fn clone(&self) -> EthtoolLinkModeInfo
fn clone(&self) -> EthtoolLinkModeInfo
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 EthtoolLinkModeInfo
impl Debug for EthtoolLinkModeInfo
source§impl Default for EthtoolLinkModeInfo
impl Default for EthtoolLinkModeInfo
source§fn default() -> EthtoolLinkModeInfo
fn default() -> EthtoolLinkModeInfo
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for EthtoolLinkModeInfo
impl<'de> Deserialize<'de> for EthtoolLinkModeInfo
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 PartialEq for EthtoolLinkModeInfo
impl PartialEq for EthtoolLinkModeInfo
source§fn eq(&self, other: &EthtoolLinkModeInfo) -> bool
fn eq(&self, other: &EthtoolLinkModeInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for EthtoolLinkModeInfo
impl Serialize for EthtoolLinkModeInfo
impl Eq for EthtoolLinkModeInfo
impl StructuralPartialEq for EthtoolLinkModeInfo
Auto Trait Implementations§
impl Freeze for EthtoolLinkModeInfo
impl RefUnwindSafe for EthtoolLinkModeInfo
impl Send for EthtoolLinkModeInfo
impl Sync for EthtoolLinkModeInfo
impl Unpin for EthtoolLinkModeInfo
impl UnwindSafe for EthtoolLinkModeInfo
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