[][src]Trait actix_server_config::IoStream

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

Low-level io stream operations

Required methods

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

Sets the value of the TCP_NODELAY option on this socket.

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

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

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<T: IoStream> IoStream for SslStream<T>[src]

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

impl IoStream for UnixStream[src]

Loading content...

Implementors

Loading content...