[][src]Trait actix_server::IoStream

pub trait IoStream: AsyncRead + AsyncWrite {
    fn set_nodelay(&mut self, nodelay: bool) -> Result<(), Error>;
fn set_linger(&mut self, dur: Option<Duration>) -> Result<(), Error>;
fn set_keepalive(&mut self, dur: Option<Duration>) -> Result<(), Error>; fn peer_addr(&self) -> Option<SocketAddr> { ... } }

Low-level io stream operations

Required methods

fn set_nodelay(&mut self, nodelay: bool) -> Result<(), Error>

Sets the value of the TCP_NODELAY option on this socket.

fn set_linger(&mut self, dur: Option<Duration>) -> Result<(), Error>

fn set_keepalive(&mut self, dur: Option<Duration>) -> Result<(), Error>

Loading content...

Provided methods

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

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

Loading content...

Implementations on Foreign Types

impl IoStream for TcpStream[src]

impl IoStream for UnixStream[src]

impl<T> IoStream for TlsStream<T, ServerSession> where
    T: IoStream
[src]

impl<T> IoStream for SslStream<T> where
    T: IoStream
[src]

Loading content...

Implementors

Loading content...