pub struct PooledConnection {
pub stream: TcpStream,
pub server_name: String,
pub authenticated: bool,
}Expand description
Pooled connection wrapper
Fields§
§stream: TcpStream§server_name: String§authenticated: boolImplementations§
Source§impl PooledConnection
impl PooledConnection
pub fn new(stream: TcpStream, server_name: String, authenticated: bool) -> Self
pub fn into_stream(self) -> TcpStream
pub fn is_authenticated(&self) -> bool
pub fn server_name(&self) -> &str
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