pub struct FXmacNic { /* private fields */ }Available on crate feature
fxmac only.Expand description
fxmac driver device
Implementations§
Trait Implementations§
Source§impl BaseDriverOps for FXmacNic
impl BaseDriverOps for FXmacNic
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 NetDriverOps for FXmacNic
impl NetDriverOps for FXmacNic
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 Send for FXmacNic
impl Sync for FXmacNic
Auto Trait Implementations§
impl Freeze for FXmacNic
impl RefUnwindSafe for FXmacNic
impl Unpin for FXmacNic
impl UnsafeUnpin for FXmacNic
impl !UnwindSafe for FXmacNic
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