Module cocaine::dispatch [] [src]

Contains helper dispatches that ease working with common protocols, like Primitive or Streaming.

Structs

PrimitiveDispatch

A single-shot dispatch wraps the given oneshot sender and implements Primitive protocol emitting either value or error.

StreamingDispatch

A streaming dispatch wraps the given stream and implements Streaming protocol, emitting either chunk, error or close events as usual stream events.

Enums

Streaming