pub struct PooledConnection { /* private fields */ }Expand description
A pooled connection wrapper
Implementations§
Source§impl PooledConnection
impl PooledConnection
Sourcepub fn stream(&mut self) -> Option<&mut LocalSocketStream>
pub fn stream(&mut self) -> Option<&mut LocalSocketStream>
Get the underlying stream
Sourcepub fn into_stream(self) -> Option<LocalSocketStream>
pub fn into_stream(self) -> Option<LocalSocketStream>
Take ownership of the underlying stream
Sourcepub const fn invalidate(&mut self)
pub const fn invalidate(&mut self)
Mark the connection as broken so it is not returned to the pool.
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 UnsafeUnpin 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