Skip to main content

ByteStream

Trait ByteStream 

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

A byte stream a service can be spoken over.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: AsyncRead + AsyncWrite + Unpin + Send + Sync> ByteStream for T