pub struct Bufs { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl BufferAccess for Bufs
impl BufferAccess for Bufs
Source§fn guest_memory(&self) -> &GuestMemory
fn guest_memory(&self) -> &GuestMemory
The associated guest memory accessor.
Source§fn guest_addresses(&mut self, id: RxId) -> &[RxBufferSegment]
fn guest_addresses(&mut self, id: RxId) -> &[RxBufferSegment]
The guest addresses of the specified buffer.
Source§fn write_data(&mut self, id: RxId, buf: &[u8])
fn write_data(&mut self, id: RxId, buf: &[u8])
Writes data to the specified buffer.
Source§fn write_header(&mut self, id: RxId, metadata: &RxMetadata)
fn write_header(&mut self, id: RxId, metadata: &RxMetadata)
Sets the packet metadata for the receive.
Source§fn write_packet(&mut self, id: RxId, metadata: &RxMetadata, data: &[u8])
fn write_packet(&mut self, id: RxId, metadata: &RxMetadata, data: &[u8])
Writes the packet header and data in a single call.
Auto Trait Implementations§
impl Freeze for Bufs
impl !RefUnwindSafe for Bufs
impl Send for Bufs
impl Sync for Bufs
impl Unpin for Bufs
impl !UnwindSafe for Bufs
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