pub struct ConfigPool { /* private fields */ }
Implementations§
source§impl ConfigPool
impl ConfigPool
Trait Implementations§
source§impl Debug for ConfigPool
impl Debug for ConfigPool
source§impl Pool for ConfigPool
impl Pool for ConfigPool
source§fn take(&self) -> Result<Connection, Error>
fn take(&self) -> Result<Connection, Error>
Get a connection.
If connections are available in the pool, one will be returned. Otherwise, a new connection will be created.
source§fn give(&self, conn: Connection)
fn give(&self, conn: Connection)
Recycle a connection.
The connection is wiped and returned to the pool if space is available.
fn mode(&self) -> Mode
Auto Trait Implementations§
impl !Freeze for ConfigPool
impl RefUnwindSafe for ConfigPool
impl Send for ConfigPool
impl Sync for ConfigPool
impl Unpin for ConfigPool
impl UnwindSafe for ConfigPool
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