Trait hyper::net::NetworkStream
[-] [+]
[src]
pub trait NetworkStream: Read + Write + Any + StreamClone + Send { fn peer_addr(&mut self) -> Result<SocketAddr>; }
An abstraction over streams that a Server can utilize.
Required Methods
fn peer_addr(&mut self) -> Result<SocketAddr>
Get the remote address of the underlying connection.
Implementors
impl NetworkStream for HttpStream