pub trait StreamConnection:
AsyncRead
+ AsyncWrite
+ Send
+ Unpin
+ 'static {
// Required method
fn peer(&self) -> Option<PeerInfo>;
}Required Methods§
Trait Implementations§
Source§impl StreamConnection for Box<dyn StreamConnection>
Available on crate feature std only.
impl StreamConnection for Box<dyn StreamConnection>
Available on crate feature
std only.Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl StreamConnection for Box<dyn StreamConnection>
Available on crate feature std only.
impl StreamConnection for Box<dyn StreamConnection>
Available on crate feature
std only.