pub struct BufferPool { /* private fields */ }Expand description
Thread-safe buffer pool for small allocations
Implementations§
Source§impl BufferPool
impl BufferPool
Sourcepub fn acquire(&self) -> PooledBuffer
pub fn acquire(&self) -> PooledBuffer
Acquire a buffer from the pool (or allocate a new one if pool is empty)
Trait Implementations§
Source§impl Clone for BufferPool
impl Clone for BufferPool
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