pub struct ThreadSafeMemoryPool<T> { /* private fields */ }Expand description
Thread-safe memory pool for concurrent access
Implementations§
Source§impl<T> ThreadSafeMemoryPool<T>
impl<T> ThreadSafeMemoryPool<T>
Sourcepub fn return_vec(&self, vec: Vec<T>)
pub fn return_vec(&self, vec: Vec<T>)
Return a vector to the pool
Sourcepub fn statistics(&self) -> PoolStatistics
pub fn statistics(&self) -> PoolStatistics
Get pool statistics
Sourcepub fn efficiency(&self) -> f64
pub fn efficiency(&self) -> f64
Get pool efficiency
Auto Trait Implementations§
impl<T> Forget for ThreadSafeMemoryPool<T>
impl<T> Freeze for ThreadSafeMemoryPool<T>
impl<T> Move for ThreadSafeMemoryPool<T>
impl<T> RefUnwindSafe for ThreadSafeMemoryPool<T>
impl<T> Send for ThreadSafeMemoryPool<T>
impl<T> Sync for ThreadSafeMemoryPool<T>
impl<T> Unpin for ThreadSafeMemoryPool<T>
impl<T> UnsafeUnpin for ThreadSafeMemoryPool<T>
impl<T> UnwindSafe for ThreadSafeMemoryPool<T>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more