pub struct ServicePool<T> { /* private fields */ }Expand description
Memory pool for reusing transient service allocations
Reduces allocation overhead for frequently created transient services by maintaining pools of pre-allocated instances.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for ServicePool<T>
impl<T> !RefUnwindSafe for ServicePool<T>
impl<T> !UnwindSafe for ServicePool<T>
impl<T> Send for ServicePool<T>
impl<T> Sync for ServicePool<T>
impl<T> Unpin for ServicePool<T>
impl<T> UnsafeUnpin for ServicePool<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