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