Struct cocaine::dispatch::PrimitiveDispatch [] [src]

pub struct PrimitiveDispatch<T> { /* fields omitted */ }

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

The majority of services adheres such protocol.

Methods

impl<T> PrimitiveDispatch<T>
[src]

Constructs a PrimitiveDispatch by wrapping the specified oneshot sender.

Trait Implementations

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

Formats the value using the given formatter.

impl<T: for<'de> Deserialize<'de> + Send> Dispatch for PrimitiveDispatch<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