Trait snocat::util::tunnel_stream::TunnelStream [−][src]
pub trait TunnelStream: AsyncRead + AsyncWrite + Send + Unpin { fn as_boxed_ref<'a>(&'a mut self) -> Box<&'a mut dyn TunnelStream>
where
Self: Sized, { ... } }
Expand description
A duplex stream abstracting over a connection, allowing use of memory streams and Quinn connections
Provided methods
fn as_boxed_ref<'a>(&'a mut self) -> Box<&'a mut dyn TunnelStream> where
Self: Sized,
Trait Implementations
Attempt to read from the AsyncRead
into buf
. Read more
Implementors
impl<T: Deref<Target = dyn TunnelStream + Send> + AsyncWrite + AsyncRead + Send + Unpin> TunnelStream for T