pub trait Connection:
AsyncRead
+ AsyncWrite
+ Unpin
+ Send {
// Required method
fn transport(&self) -> &'static str;
}Expand description
Trait abstracting an accepted connection so the lifecycle can speak to either a Unix-socket stream or a TCP stream uniformly.
Required Methods§
Implementations on Foreign Types§
Source§impl Connection for UnixStream
Available on Unix only.
impl Connection for UnixStream
Available on Unix only.