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]

Constructs a StreamingDispatch by wrapping the specified sender.

Trait Implementations

impl<T: Debug> Debug for StreamingDispatch<T>
[src]

Formats the value using the given formatter. Read more

impl<T: for<'de> Deserialize<'de> + Send + 'static> Dispatch for StreamingDispatch<T>
[src]

Processes a new incoming message from a service. Read more

Discards the dispatch due to some error occurred during receiving the response. Read more

Auto Trait Implementations

impl<T> Send for StreamingDispatch<T> where
    T: Send

impl<T> Sync for StreamingDispatch<T> where
    T: Send