Connection

Trait Connection 

Source
pub trait Connection {
    // Required method
    async fn accept(
        &mut self,
    ) -> Result<(impl AsyncRead + Unpin + 'static, impl AsyncWrite + Unpin + 'static, SocketAddr), Error>;
}

Required Methods§

Source

async fn accept( &mut self, ) -> Result<(impl AsyncRead + Unpin + 'static, impl AsyncWrite + Unpin + 'static, SocketAddr), Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§