pub struct DeviceWrapper<H: Hal, T: Transport> { /* private fields */ }Implementations§
Source§impl<H: Hal, T: Transport> DeviceWrapper<H, T>
impl<H: Hal, T: Transport> DeviceWrapper<H, T>
pub fn new(dev: DeviceImpl<H, T>) -> Self
Trait Implementations§
Source§impl<H: Hal, T: Transport> Device for DeviceWrapper<H, T>
impl<H: Hal, T: Transport> Device for DeviceWrapper<H, T>
type RxToken<'a> = VirtioRxToken<H, T> where Self: 'a
type TxToken<'a> = VirtioTxToken<H, T> where Self: 'a
Source§fn receive(
&mut self,
_timestamp: Instant,
) -> Option<(Self::RxToken<'_>, Self::TxToken<'_>)>
fn receive( &mut self, _timestamp: Instant, ) -> Option<(Self::RxToken<'_>, Self::TxToken<'_>)>
Construct a token pair consisting of one receive token and one transmit token. Read more
Source§fn transmit(&mut self, _timestamp: Instant) -> Option<Self::TxToken<'_>>
fn transmit(&mut self, _timestamp: Instant) -> Option<Self::TxToken<'_>>
Construct a transmit token. Read more
Source§fn capabilities(&self) -> DeviceCapabilities
fn capabilities(&self) -> DeviceCapabilities
Get a description of device capabilities.
Source§impl<H: Hal, T: Transport> GetNetDeviceMeta for DeviceWrapper<H, T>
impl<H: Hal, T: Transport> GetNetDeviceMeta for DeviceWrapper<H, T>
type Error = Infallible
fn get_mac_address(&mut self) -> Result<MacAddress, Self::Error>
Source§impl<H: Hal, T: Transport> HandleInterrupt for DeviceWrapper<H, T>
impl<H: Hal, T: Transport> HandleInterrupt for DeviceWrapper<H, T>
fn handle_interrupt(&mut self)
Auto Trait Implementations§
impl<H, T> !RefUnwindSafe for DeviceWrapper<H, T>
impl<H, T> !Send for DeviceWrapper<H, T>
impl<H, T> !Sync for DeviceWrapper<H, T>
impl<H, T> !UnwindSafe for DeviceWrapper<H, T>
impl<H, T> Freeze for DeviceWrapper<H, T>
impl<H, T> Unpin for DeviceWrapper<H, T>
impl<H, T> UnsafeUnpin for DeviceWrapper<H, T>
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more