pub struct BufferPool { /* private fields */ }
Expand description
A per-queue wrapper around guest buffers. The receive buffer is shared across all queues, but they are statically partitioned into per-queue suballocations.
Implementations§
Trait Implementations§
Source§impl BufferAccess for BufferPool
impl BufferAccess for BufferPool
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, data: &[u8])
fn write_data(&mut self, id: RxId, data: &[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.
§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 BufferPool
impl !RefUnwindSafe for BufferPool
impl Send for BufferPool
impl Sync for BufferPool
impl Unpin for BufferPool
impl !UnwindSafe for BufferPool
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