Trait ByteStream

Source
pub trait ByteStream:
    AsyncRead
    + AsyncWrite
    + Send
    + Unpin
    + 'static { }
Expand description

A trait to simplify using all tokio io traits.

Implementors§

Source§

impl<T> ByteStream for T
where T: AsyncRead + AsyncWrite + Send + Unpin + 'static,