BytesStreamSink

Trait BytesStreamSink 

Source
pub trait BytesStreamSink:
    Stream<Item = Result<Bytes, StreamError>>
    + Sink<Bytes, Error = StreamError>
    + Unpin { }
Expand description

Shorthand for a type that implements both a websocket-based stream & sink for [Bytes].

Implementors§

Source§

impl<T> BytesStreamSink for T
where T: Stream<Item = Result<Bytes, StreamError>> + Sink<Bytes, Error = StreamError> + Unpin,