pub struct ConnectionManager { /* private fields */ }
Expand description
Provides access to a (possibly) pooled connection
Implementations§
Source§impl ConnectionManager
impl ConnectionManager
Sourcepub async fn get(&self) -> Result<Connection<'_>>
pub async fn get(&self) -> Result<Connection<'_>>
Get the underlying conneciton
Trait Implementations§
Source§impl Clone for ConnectionManager
impl Clone for ConnectionManager
Source§fn clone(&self) -> ConnectionManager
fn clone(&self) -> ConnectionManager
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ConnectionManager
impl Debug for ConnectionManager
Source§impl From<Connection> for ConnectionManager
impl From<Connection> for ConnectionManager
Source§fn from(value: Connection) -> Self
fn from(value: Connection) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConnectionManager
impl RefUnwindSafe for ConnectionManager
impl Send for ConnectionManager
impl Sync for ConnectionManager
impl Unpin for ConnectionManager
impl UnwindSafe for ConnectionManager
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