[][src]Trait tower_web::net::Connection

pub trait Connection: AsyncRead + AsyncWrite {
    fn peer_addr(&self) -> Option<SocketAddr>;
}

A stream between a local and remote target.

Required methods

fn peer_addr(&self) -> Option<SocketAddr>

Returns the socket address of the remote peer of this connection.

Loading content...

Implementations on Foreign Types

impl Connection for TcpStream[src]

Loading content...

Implementors

Loading content...