pub struct SimpleBufferPool { /* private fields */ }Implementations§
Source§impl SimpleBufferPool
impl SimpleBufferPool
pub fn new() -> Self
Sourcepub fn outstanding_leases(&self) -> usize
pub fn outstanding_leases(&self) -> usize
Returns the number of buffers currently allocated and not yet released.
Sourcepub fn assert_no_leaks(&self)
pub fn assert_no_leaks(&self)
Panics (in debug builds and tests) if there are any unreleased buffers. Use at the end of a test to confirm there are no buffer leaks.
Trait Implementations§
Source§impl Default for SimpleBufferPool
impl Default for SimpleBufferPool
Source§fn default() -> SimpleBufferPool
fn default() -> SimpleBufferPool
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SimpleBufferPool
impl RefUnwindSafe for SimpleBufferPool
impl Send for SimpleBufferPool
impl Sync for SimpleBufferPool
impl Unpin for SimpleBufferPool
impl UnsafeUnpin for SimpleBufferPool
impl UnwindSafe for SimpleBufferPool
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