pub struct PooledBuf { /* private fields */ }Expand description
PooledBuf is a buffer pool that designed for reusing already allocated bufs.
It works as best-effort that tries to reuse the buffer if possible. It won’t block the thread if the pool is locked, just returning a new buffer or dropping existing buffer.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for PooledBuf
impl RefUnwindSafe for PooledBuf
impl Send for PooledBuf
impl Sync for PooledBuf
impl Unpin for PooledBuf
impl UnwindSafe for PooledBuf
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