Trait rustful::net::NetworkStream [] [src]

pub trait NetworkStream: Read + Write + Send + Any + Typeable {
    fn peer_addr(&mut self) -> Result<SocketAddr, Error>;
fn set_read_timeout(&self, dur: Option<Duration>) -> Result<(), Error>;
fn set_write_timeout(&self, dur: Option<Duration>) -> Result<(), Error>; fn close(&mut self, _how: Shutdown) -> Result<(), Error> { ... } }

An abstraction over streams that a Server can utilize.

Required Methods

Get the remote address of the underlying connection.

Set the maximum time to wait for a read to complete.

Set the maximum time to wait for a write to complete.

Provided Methods

This will be called when Stream should no longer be kept alive.

Methods

impl NetworkStream + 'static
[src]

Is the underlying type in this trait object a T?

If the underlying type is T, get a reference to the contained data.

If the underlying type is T, get a mutable reference to the contained data.

If the underlying type is T, extract it.

impl NetworkStream + 'static + Send
[src]

Is the underlying type in this trait object a T?

If the underlying type is T, get a reference to the contained data.

If the underlying type is T, get a mutable reference to the contained data.

If the underlying type is T, extract it.

Implementations on Foreign Types

impl<S> NetworkStream for HttpsStream<S> where
    S: NetworkStream
[src]

impl<S> NetworkStream for PooledStream<S> where
    S: NetworkStream
[src]

Implementors