Type Definition cocaine::protocol::Primitive
[−]
[src]
type Primitive<T> = Result<T, Error>;
Primitive result, i.e. result, which can be only either a value or an error.
The majority of services uses this protocol for a single-shot responses.
Note
Used primarily in conjunction with deserialize
function inside dispatches to
map arguments into the user-defined type.