pub struct PooledGuard<T: Releasable> { /* private fields */ }Expand description
A guard that automatically returns a container to its pool when dropped
This implements the RAII pattern for container pooling - when the guard goes out of scope, it automatically releases the contained value back to the pool for reuse.
Implementations§
Source§impl<T: Releasable> PooledGuard<T>
impl<T: Releasable> PooledGuard<T>
Source§impl PooledGuard<Utf8Container>
impl PooledGuard<Utf8Container>
Sourcepub fn new_string(pools: Pools, capacity: usize) -> Self
pub fn new_string(pools: Pools, capacity: usize) -> Self
Create a new pooled StringContainer with the specified capacity
Source§impl PooledGuard<RowNumberContainer>
impl PooledGuard<RowNumberContainer>
Sourcepub fn new_row_number(pools: Pools, capacity: usize) -> Self
pub fn new_row_number(pools: Pools, capacity: usize) -> Self
Create a new pooled RowNumberContainer with the specified capacity
Source§impl PooledGuard<UndefinedContainer>
impl PooledGuard<UndefinedContainer>
Sourcepub fn new_undefined(pools: Pools, capacity: usize) -> Self
pub fn new_undefined(pools: Pools, capacity: usize) -> Self
Create a new pooled UndefinedContainer with the specified capacity
Source§impl PooledGuard<NumberContainer<i32>>
impl PooledGuard<NumberContainer<i32>>
Source§impl PooledGuard<NumberContainer<i64>>
impl PooledGuard<NumberContainer<i64>>
Source§impl PooledGuard<NumberContainer<f32>>
impl PooledGuard<NumberContainer<f32>>
Source§impl PooledGuard<NumberContainer<f64>>
impl PooledGuard<NumberContainer<f64>>
Source§impl PooledGuard<NumberContainer<i8>>
impl PooledGuard<NumberContainer<i8>>
Source§impl PooledGuard<NumberContainer<i16>>
impl PooledGuard<NumberContainer<i16>>
Source§impl PooledGuard<NumberContainer<u8>>
impl PooledGuard<NumberContainer<u8>>
Source§impl PooledGuard<NumberContainer<u16>>
impl PooledGuard<NumberContainer<u16>>
Source§impl PooledGuard<NumberContainer<u32>>
impl PooledGuard<NumberContainer<u32>>
Source§impl PooledGuard<NumberContainer<u64>>
impl PooledGuard<NumberContainer<u64>>
Source§impl PooledGuard<TemporalContainer<DateTime>>
impl PooledGuard<TemporalContainer<DateTime>>
Sourcepub fn new_datetime(pools: Pools, capacity: usize) -> Self
pub fn new_datetime(pools: Pools, capacity: usize) -> Self
Create a new pooled TemporalContainer
Source§impl PooledGuard<TemporalContainer<Duration>>
impl PooledGuard<TemporalContainer<Duration>>
Sourcepub fn new_duration(pools: Pools, capacity: usize) -> Self
pub fn new_duration(pools: Pools, capacity: usize) -> Self
Create a new pooled TemporalContainer
Source§impl PooledGuard<UuidContainer<Uuid4>>
impl PooledGuard<UuidContainer<Uuid4>>
Source§impl PooledGuard<UuidContainer<Uuid7>>
impl PooledGuard<UuidContainer<Uuid7>>
Trait Implementations§
Source§impl<T: Releasable> Debug for PooledGuard<T>
impl<T: Releasable> Debug for PooledGuard<T>
Source§impl<T: Releasable> Deref for PooledGuard<T>
impl<T: Releasable> Deref for PooledGuard<T>
Source§impl<T: Releasable> DerefMut for PooledGuard<T>
impl<T: Releasable> DerefMut for PooledGuard<T>
Auto Trait Implementations§
impl<T> Freeze for PooledGuard<T>where
T: Freeze,
impl<T> !RefUnwindSafe for PooledGuard<T>
impl<T> !Send for PooledGuard<T>
impl<T> !Sync for PooledGuard<T>
impl<T> Unpin for PooledGuard<T>where
T: Unpin,
impl<T> !UnwindSafe for PooledGuard<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