pub struct BufferPool { /* private fields */ }Expand description
Buffer pool for reusing BufferSet instances across connections.
Implementations§
Source§impl BufferPool
impl BufferPool
Sourcepub fn get_buffer_set(self: &Arc<Self>) -> PooledBufferSet
pub fn get_buffer_set(self: &Arc<Self>) -> PooledBufferSet
Get a buffer set from the pool, or create a new one if empty.
Sourcepub fn return_buffer_set(&self, buffer_set: BufferSet)
pub fn return_buffer_set(&self, buffer_set: BufferSet)
Return a buffer set to the pool.
Trait Implementations§
Source§impl Debug for BufferPool
impl Debug 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