pub struct BatchPool { /* private fields */ }Implementations§
Source§impl BatchPool
impl BatchPool
Sourcepub fn with_default_size(pool_size: usize) -> Result<Self>
pub fn with_default_size(pool_size: usize) -> Result<Self>
Sourcepub fn acquire(&self) -> Result<LoanableBatch>
pub fn acquire(&self) -> Result<LoanableBatch>
pub fn release(&self, batch: LoanableBatch)
pub fn available(&self) -> usize
pub fn batch_capacity(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BatchPool
impl RefUnwindSafe for BatchPool
impl Send for BatchPool
impl Sync for BatchPool
impl Unpin for BatchPool
impl UnsafeUnpin for BatchPool
impl UnwindSafe for BatchPool
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