#[repr(C, align(8))]pub struct rte_eth_link {
pub link_speed: u32,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
pub __bindgen_padding_0: [u8; 3],
}Fields§
§link_speed: u32§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>§__bindgen_padding_0: [u8; 3]Implementations§
Source§impl rte_eth_link
impl rte_eth_link
pub fn link_duplex(&self) -> u16
pub fn set_link_duplex(&mut self, val: u16)
pub fn link_autoneg(&self) -> u16
pub fn set_link_autoneg(&mut self, val: u16)
pub fn link_status(&self) -> u16
pub fn set_link_status(&mut self, val: u16)
pub fn new_bitfield_1( link_duplex: u16, link_autoneg: u16, link_status: u16, ) -> __BindgenBitfieldUnit<[u8; 1]>
Trait Implementations§
Source§impl Clone for rte_eth_link
impl Clone for rte_eth_link
Source§fn clone(&self) -> rte_eth_link
fn clone(&self) -> rte_eth_link
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 rte_eth_link
impl Debug for rte_eth_link
Source§impl Default for rte_eth_link
impl Default for rte_eth_link
Source§fn default() -> rte_eth_link
fn default() -> rte_eth_link
Returns the “default value” for a type. Read more
Source§impl PartialEq for rte_eth_link
impl PartialEq for rte_eth_link
impl Copy for rte_eth_link
impl StructuralPartialEq for rte_eth_link
Auto Trait Implementations§
impl Freeze for rte_eth_link
impl RefUnwindSafe for rte_eth_link
impl Send for rte_eth_link
impl Sync for rte_eth_link
impl Unpin for rte_eth_link
impl UnwindSafe for rte_eth_link
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