Struct driver_net::ixgbe::IxgbeNic  
source · pub struct IxgbeNic<H: IxgbeHal, const QS: usize, const QN: u16> { /* private fields */ }Expand description
The ixgbe NIC device driver.
QS is the ixgbe queue size, QN is the ixgbe queue num.
Implementations§
Trait Implementations§
source§impl<H: IxgbeHal, const QS: usize, const QN: u16> BaseDriverOps for IxgbeNic<H, QS, QN>
 
impl<H: IxgbeHal, const QS: usize, const QN: u16> BaseDriverOps for IxgbeNic<H, QS, QN>
source§fn device_name(&self) -> &str
 
fn device_name(&self) -> &str
The name of the device.
source§fn device_type(&self) -> DeviceType
 
fn device_type(&self) -> DeviceType
The type of the device.
source§impl<H: IxgbeHal, const QS: usize, const QN: u16> NetDriverOps for IxgbeNic<H, QS, QN>
 
impl<H: IxgbeHal, const QS: usize, const QN: u16> NetDriverOps for IxgbeNic<H, QS, QN>
source§fn mac_address(&self) -> EthernetAddress
 
fn mac_address(&self) -> EthernetAddress
The ethernet address of the NIC.
source§fn rx_queue_size(&self) -> usize
 
fn rx_queue_size(&self) -> usize
Size of the receive queue.
source§fn tx_queue_size(&self) -> usize
 
fn tx_queue_size(&self) -> usize
Size of the transmit queue.
source§fn can_receive(&self) -> bool
 
fn can_receive(&self) -> bool
Whether can receive packets.
source§fn can_transmit(&self) -> bool
 
fn can_transmit(&self) -> bool
Whether can transmit packets.
source§fn recycle_rx_buffer(&mut self, rx_buf: NetBufPtr) -> DevResult
 
fn recycle_rx_buffer(&mut self, rx_buf: NetBufPtr) -> DevResult
Gives back the 
rx_buf to the receive queue for later receiving. Read moresource§fn recycle_tx_buffers(&mut self) -> DevResult
 
fn recycle_tx_buffers(&mut self) -> DevResult
Poll the transmit queue and gives back the buffers for previous transmiting.
returns 
DevResult.impl<H: IxgbeHal, const QS: usize, const QN: u16> Send for IxgbeNic<H, QS, QN>
impl<H: IxgbeHal, const QS: usize, const QN: u16> Sync for IxgbeNic<H, QS, QN>
Auto Trait Implementations§
impl<H, const QS: usize, const QN: u16> !RefUnwindSafe for IxgbeNic<H, QS, QN>
impl<H, const QS: usize, const QN: u16> Unpin for IxgbeNic<H, QS, QN>where H: Unpin,
impl<H, const QS: usize, const QN: u16> !UnwindSafe for IxgbeNic<H, QS, QN>
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