pub struct ConnectionPool { /* private fields */ }Implementations§
Source§impl ConnectionPool
impl ConnectionPool
pub fn new(max_per_host: usize, idle_timeout: Duration) -> Self
pub fn acquire(&self, host: &str) -> Option<PooledConn>
pub fn release(&self, conn: PooledConn)
pub fn create(&self, host: &str) -> PooledConn
pub fn idle_count(&self, host: &str) -> usize
pub fn evict_stale(&self) -> usize
Auto Trait Implementations§
impl !Freeze for ConnectionPool
impl RefUnwindSafe for ConnectionPool
impl Send for ConnectionPool
impl Sync for ConnectionPool
impl Unpin for ConnectionPool
impl UnsafeUnpin for ConnectionPool
impl UnwindSafe for ConnectionPool
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