Trait async_io_helper::Connected[][src]

pub trait Connected {
    fn remote_addr(&self) -> Option<SocketAddr> { ... }
}

Trait that connected IO resources implement.

The goal for this trait is to allow users to implement custom IO types that can still provide the same connection metadata.

Provided methods

fn remote_addr(&self) -> Option<SocketAddr>[src]

Return the remote address this IO resource is connected too.

Loading content...

Implementations on Foreign Types

impl Connected for TcpStream[src]

Loading content...

Implementors

Loading content...