pub trait Connection {
// Required method
fn connected(&self) -> Connected;
}Available on crate features
client and client-legacy only.Expand description
Describes a type returned by a connector.
Required Methods§
Implementations on Foreign Types§
Source§impl Connection for TcpStream
Available on crate feature tokio only.
impl Connection for TcpStream
Available on crate feature
tokio only.Source§impl Connection for UnixStream
Available on crate feature tokio and Unix only.
impl Connection for UnixStream
Available on crate feature
tokio and Unix only.Implementors§
impl<T> Connection for TokioIo<T>where
T: Connection,
Available on crate feature
tokio only.