pub trait StreamOps {
// Provided methods
fn set_tcp_notsent_lowat(&self, _notsent_lowat: u32) -> IoResult<()> { ... }
fn new_handle(&self) -> Box<dyn StreamOps + Send + Unpin> { ... }
}
Expand description
Trait providing additional operations on network sockets.
Provided Methods§
Sourcefn set_tcp_notsent_lowat(&self, _notsent_lowat: u32) -> IoResult<()>
fn set_tcp_notsent_lowat(&self, _notsent_lowat: u32) -> IoResult<()>
Set the TCP_NOTSENT_LOWAT
socket option, if this Stream
is a TCP stream.
Implementations should return an UnsupportedStreamOp
IO error
if the stream is not a TCP stream,
and on platforms where the operation is not supported.
Implementations on Foreign Types§
Source§impl StreamOps for TcpStream
Available on (crate features native-tls
or rustls
) and (crate features async-std
or tokio
) and crate feature async-std
only.
impl StreamOps for TcpStream
Available on (crate features
native-tls
or rustls
) and (crate features async-std
or tokio
) and crate feature async-std
only.Source§impl StreamOps for UnixStream
Available on (crate features native-tls
or rustls
) and (crate features async-std
or tokio
) and crate feature async-std
and Unix only.
impl StreamOps for UnixStream
Available on (crate features
native-tls
or rustls
) and (crate features async-std
or tokio
) and crate feature async-std
and Unix only.Source§impl<S: StreamOps> StreamOps for TlsStream<S>
Available on (crate features native-tls
or rustls
) and (crate features async-std
or tokio
) and crate feature rustls
only.
impl<S: StreamOps> StreamOps for TlsStream<S>
Available on (crate features
native-tls
or rustls
) and (crate features async-std
or tokio
) and crate feature rustls
only.Source§impl<S: AsyncRead + AsyncWrite + StreamOps + Unpin> StreamOps for TlsStream<S>
Available on (crate features native-tls
or rustls
) and (crate features async-std
or tokio
) and crate feature native-tls
only.
impl<S: AsyncRead + AsyncWrite + StreamOps + Unpin> StreamOps for TlsStream<S>
Available on (crate features
native-tls
or rustls
) and (crate features async-std
or tokio
) and crate feature native-tls
only.Implementors§
impl StreamOps for Stream
impl StreamOps for TcpSockFd
Available on (crate features
native-tls
or rustls
) and (crate features async-std
or tokio
) and Linux only.impl StreamOps for tor_rtcompat::impls::tokio::net::TcpStream
Available on (crate features
native-tls
or rustls
) and (crate features async-std
or tokio
) and crate feature tokio
only.impl StreamOps for tor_rtcompat::impls::tokio::net::UnixStream
Available on (crate features
native-tls
or rustls
) and (crate features async-std
or tokio
) and crate feature tokio
and Unix only.