pub struct BufferPool { /* private fields */ }Expand description
A buffer pool.
This type by itself does nothing, and should only be used by *Managed ops.
Implementations§
Source§impl BufferPool
impl BufferPool
Sourcepub fn pop(&self) -> Result<BufferRef>
pub fn pop(&self) -> Result<BufferRef>
Pop an available buffer from the pool with given capacity.
This operation is not supported on io-uring driver and will always
return Unsupported.
Trait Implementations§
Source§impl Clone for BufferPool
impl Clone for BufferPool
Source§fn clone(&self) -> BufferPool
fn clone(&self) -> BufferPool
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for BufferPool
impl !Send for BufferPool
impl !Sync for BufferPool
impl !UnwindSafe for BufferPool
impl Freeze for BufferPool
impl Unpin for BufferPool
impl UnsafeUnpin 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