pub struct QemuShmDriver { /* private fields */ }Expand description
Driver state — owns a single RX frame buffer to keep storage small. The C side serialises ring access; a single in-flight frame at a time is fine for the SHM transport’s throughput envelope.
Implementations§
Trait Implementations§
Source§impl Driver for QemuShmDriver
impl Driver for QemuShmDriver
Source§fn receive(
&mut self,
cx: &mut Context<'_>,
) -> Option<(Self::RxToken<'_>, Self::TxToken<'_>)>
fn receive( &mut self, cx: &mut Context<'_>, ) -> 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, _cx: &mut Context<'_>) -> Option<Self::TxToken<'_>>
fn transmit(&mut self, _cx: &mut Context<'_>) -> Option<Self::TxToken<'_>>
Construct a transmit token. Read more
Source§fn capabilities(&self) -> Capabilities
fn capabilities(&self) -> Capabilities
Get a description of device capabilities.
Source§fn hardware_address(&self) -> HardwareAddress
fn hardware_address(&self) -> HardwareAddress
Get the device’s hardware address. Read more
Auto Trait Implementations§
impl Freeze for QemuShmDriver
impl RefUnwindSafe for QemuShmDriver
impl Send for QemuShmDriver
impl Sync for QemuShmDriver
impl Unpin for QemuShmDriver
impl UnsafeUnpin for QemuShmDriver
impl UnwindSafe for QemuShmDriver
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