Module cocaine::protocol [] [src]

Contains protocol-specific helpers for deserialization and error handling.

Structs

Error

The error type which is returned from a cocaine service.

Enums

Streaming

Streaming result, i.e stream of some chunks that ends with either Close on normal execution path or Error otherwise.

Traits

Flatten

An extension trait for results, that contain error types itself, to be able to flatten the result of deserialization and protocol errors.

Functions

deserialize

Deserializes the dispatch arguments into some user-defined type D.

Type Definitions

Primitive

Primitive result, i.e. result, which can be only either a value or an error.