struct InnerPool {
connections: Mutex<Vec<Connection>>,
semaphore: Arc<Semaphore>,
}
Expand description
Inner connection pool.
Fields§
§connections: Mutex<Vec<Connection>>
Available connections.
semaphore: Arc<Semaphore>
Counts the number of available connections.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for InnerPool
impl Send for InnerPool
impl Sync for InnerPool
impl Unpin for InnerPool
impl !UnwindSafe for InnerPool
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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