pub struct BufferPoolOptions {
pub buffers: usize,
pub buffer_size: usize,
pub alignment: usize,
}Expand description
Usable payload capacity and alignment, independent of kernel registration strategy. Backends must satisfy these requirements or return an error; backend metadata and allocation padding may require additional memory.
Fields§
§buffers: usizeThe number of buffers, which is the pool’s exact shared capacity. Must be nonzero.
buffer_size: usizeThe usable payload length, in bytes, of each buffer. Must be nonzero.
alignment: usizeNonzero power-of-two alignment of each acquired buffer’s first byte.
Implementations§
Trait Implementations§
Source§impl Clone for BufferPoolOptions
impl Clone for BufferPoolOptions
impl Copy for BufferPoolOptions
Source§impl Debug for BufferPoolOptions
impl Debug for BufferPoolOptions
impl Eq for BufferPoolOptions
Source§impl PartialEq for BufferPoolOptions
impl PartialEq for BufferPoolOptions
impl StructuralPartialEq for BufferPoolOptions
Auto Trait Implementations§
impl Freeze for BufferPoolOptions
impl RefUnwindSafe for BufferPoolOptions
impl Send for BufferPoolOptions
impl Sync for BufferPoolOptions
impl Unpin for BufferPoolOptions
impl UnsafeUnpin for BufferPoolOptions
impl UnwindSafe for BufferPoolOptions
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