#[repr(C)]pub struct ethtool_cmd {Show 17 fields
pub cmd: u32,
pub supported: u32,
pub advertising: u32,
pub speed: u16,
pub duplex: u8,
pub port: u8,
pub phy_address: u8,
pub transceiver: u8,
pub autoneg: u8,
pub mdio_support: u8,
pub maxtxpkt: u32,
pub maxrxpkt: u32,
pub speed_hi: u16,
pub eth_tp_mdix: u8,
pub eth_tp_mdix_ctrl: u8,
pub lp_advertising: u32,
pub reserved: [u32; 2],
}
Fields§
§cmd: u32
§supported: u32
§advertising: u32
§speed: u16
§duplex: u8
§port: u8
§phy_address: u8
§transceiver: u8
§autoneg: u8
§mdio_support: u8
§maxtxpkt: u32
§maxrxpkt: u32
§speed_hi: u16
§eth_tp_mdix: u8
§eth_tp_mdix_ctrl: u8
§lp_advertising: u32
§reserved: [u32; 2]
Trait Implementations§
Source§impl Clone for ethtool_cmd
impl Clone for ethtool_cmd
Source§fn clone(&self) -> ethtool_cmd
fn clone(&self) -> ethtool_cmd
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 ethtool_cmd
impl Debug for ethtool_cmd
Source§impl Default for ethtool_cmd
impl Default for ethtool_cmd
Source§impl Hash for ethtool_cmd
impl Hash for ethtool_cmd
Source§impl Ord for ethtool_cmd
impl Ord for ethtool_cmd
Source§fn cmp(&self, other: ðtool_cmd) -> Ordering
fn cmp(&self, other: ðtool_cmd) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ethtool_cmd
impl PartialEq for ethtool_cmd
Source§impl PartialOrd for ethtool_cmd
impl PartialOrd for ethtool_cmd
impl Copy for ethtool_cmd
impl Eq for ethtool_cmd
impl StructuralPartialEq for ethtool_cmd
Auto Trait Implementations§
impl Freeze for ethtool_cmd
impl RefUnwindSafe for ethtool_cmd
impl Send for ethtool_cmd
impl Sync for ethtool_cmd
impl Unpin for ethtool_cmd
impl UnwindSafe for ethtool_cmd
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