Skip to main content

StreamConnection

Trait StreamConnection 

Source
pub trait StreamConnection:
    AsyncRead
    + AsyncWrite
    + Send
    + Unpin
    + 'static {
    // Required method
    fn peer(&self) -> Option<PeerInfo>;
}

Required Methods§

Source

fn peer(&self) -> Option<PeerInfo>

Trait Implementations§

Source§

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.

Implementors§