[][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

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

Implementations on Foreign Types

impl Connection for TcpStream
[src]

Implementors