pub type BoxedAsyncReadAndWrite = Box<dyn AsyncReadAndWrite>;Aliased Type§
pub struct BoxedAsyncReadAndWrite(/* private fields */);Trait Implementations§
Source§impl AsyncReadAndWrite for BoxedAsyncReadAndWrite
impl AsyncReadAndWrite for BoxedAsyncReadAndWrite
Source§fn try_dup(&self) -> Option<TcpStream>
fn try_dup(&self) -> Option<TcpStream>
Optionally clone a TcpStream that represents the same underlying
stream as this one.
This only has an impl that returns Some for TcpStream.
It is present to facilitate a workaround for some awkwardness
in the SslStream implementation for the failed-handshake case.
Source§fn try_into_tcp_stream(self) -> Result<TcpStream, Self>where
Self: Sized,
fn try_into_tcp_stream(self) -> Result<TcpStream, Self>where
Self: Sized,
Returns Ok() if the type can be converted without loss to a TcpStream,
or Err(self) otherwise. This is used by the proxy server to decide
whether we can use splice(2).