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

Trait Implementations

Attempt to read from the AsyncRead into buf. Read more

Attempt to read from the AsyncRead into bufs using vectored IO operations. Read more

Attempt to write bytes from buf into the object. Read more

Attempt to flush the object, ensuring that any buffered data reach their destination. Read more

Attempt to close the object. Read more

Attempt to write bytes from bufs into the object using vectored IO operations. Read more

Implementors