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.