pub struct NullDevice;Expand description
Placeholder NIC that does nothing. Useful for early bring-up.
Trait Implementations§
Source§impl NetworkDevice for NullDevice
impl NetworkDevice for NullDevice
Source§fn mac_address(&self) -> [u8; 6]
fn mac_address(&self) -> [u8; 6]
MAC address of the interface.
Source§fn can_transmit(&self) -> bool
fn can_transmit(&self) -> bool
Whether the device has space to transmit a frame.
Source§fn can_receive(&self) -> bool
fn can_receive(&self) -> bool
Whether the device has a frame ready to read.
Auto Trait Implementations§
impl Freeze for NullDevice
impl RefUnwindSafe for NullDevice
impl Send for NullDevice
impl Sync for NullDevice
impl Unpin for NullDevice
impl UnwindSafe for NullDevice
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