Struct cocaine::dispatch::StreamingDispatch
[−]
[src]
pub struct StreamingDispatch<T> { /* fields omitted */ }
A streaming dispatch wraps the given stream and implements Streaming
protocol, emitting
either chunk, error or close events as usual stream events.
Methods
impl<T> StreamingDispatch<T>
[src]
fn new(tx: UnboundedSender<Result<T, Error>>) -> Self
Constructs a StreamingDispatch
by wrapping the specified sender.