pub struct PooledConnection { /* private fields */ }Expand description
A pooled connection wrapper
Implementations§
Source§impl PooledConnection
impl PooledConnection
Sourcepub fn connection_mut(&mut self) -> Option<&mut Connection>
pub fn connection_mut(&mut self) -> Option<&mut Connection>
Get mutable reference to the underlying connection
Sourcepub fn take_connection(&mut self) -> Option<Connection>
pub fn take_connection(&mut self) -> Option<Connection>
Take ownership of the underlying connection
Sourcepub fn is_connected(&self) -> bool
pub fn is_connected(&self) -> bool
Check if the connection is still active
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PooledConnection
impl !RefUnwindSafe for PooledConnection
impl Send for PooledConnection
impl Sync for PooledConnection
impl Unpin for PooledConnection
impl !UnwindSafe for PooledConnection
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