pub struct PoolMutex<T> { /* private fields */ }Implementations
sourceimpl<T> PoolMutex<T> where
T: Default + Clear,
impl<T> PoolMutex<T> where
T: Default + Clear,
pub fn new() -> Self
pub fn with_config(capacity: usize, max_size: usize) -> Self
pub fn create(self: &Arc<Self>) -> PoolObjectContainer<T>
pub fn create_with<F: FnOnce() -> T>(
self: &Arc<Self>,
f: F
) -> PoolObjectContainer<T>
pub fn len(&self) -> usize
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for PoolMutex<T>
impl<T> Send for PoolMutex<T> where
T: Send,
impl<T> Sync for PoolMutex<T> where
T: Send,
impl<T> Unpin for PoolMutex<T> where
T: Unpin,
impl<T> UnwindSafe for PoolMutex<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more