Skip to main content

Stream

Trait Stream 

Source
pub trait Stream<T>:
    Stream<Item = Result<T, ProtocolError>>
    + Sink<T, Error = ProtocolError>
    + Unpin
    + Send
    + Sync { }

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<S, T> Stream<T> for TypedStream<S, T>
where S: Stream<Item = Result<BytesMut, Error>> + Send + Sink<Bytes, Error = Error> + Unpin + Sync, T: for<'a> Deserialize<'a> + Serialize,

Source§

impl<T> Stream<T> for Channel<T>
where Channel<T>: Sync + Send,