pub struct Device<'d> { /* private fields */ }Expand description
Channel device.
Holds the shared state and upper end of channels for inbound and outbound packets.
Trait Implementations§
Source§impl Driver for Device<'_>
impl Driver for Device<'_>
Source§fn capabilities(&self) -> Capabilities
fn capabilities(&self) -> Capabilities
Get a description of the device’s capabilities.
Source§fn hardware_address(&self) -> HardwareAddress
fn hardware_address(&self) -> HardwareAddress
Get the device’s hardware address. Read more
Source§fn link_state(&mut self) -> LinkState
fn link_state(&mut self) -> LinkState
Get the link state. Read more
Source§fn register_waker(&mut self, waker: &Waker) -> Result<(), NotSupported>
fn register_waker(&mut self, waker: &Waker) -> Result<(), NotSupported>
Register a waker. Read more
Source§fn can_transmit(&mut self) -> bool
fn can_transmit(&mut self) -> bool
Whether the device can transmit one frame right now. Read more
Auto Trait Implementations§
impl<'d> !RefUnwindSafe for Device<'d>
impl<'d> !Send for Device<'d>
impl<'d> !Sync for Device<'d>
impl<'d> !UnwindSafe for Device<'d>
impl<'d> Freeze for Device<'d>
impl<'d> Unpin for Device<'d>
impl<'d> UnsafeUnpin for Device<'d>
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