Struct deadpool::managed::Pool [−][src]
This is supported on crate feature
managed only.Expand description
Generic object and connection pool.
This struct can be cloned and transferred across thread boundaries and uses reference counting for its internal state.
Implementations
Resize the pool. This change the max_size of the pool dropping
excess objects and/or making space for new ones.
If the pool is closed this method does nothing. The Pool::status method
always reports a max_size of 0 for closed pools.
Closes this Pool.
All current and future tasks waiting for Objects will return
PoolError::Closed immediately.
This operation resizes the pool to 0.
Trait Implementations
Auto Trait Implementations
impl<M, W = Object<M>> !RefUnwindSafe for Pool<M, W>
impl<M, W = Object<M>> !UnwindSafe for Pool<M, W>
Blanket Implementations
Mutably borrows from an owned value. Read more