Enum cocaine::protocol::Streaming [−][src]
pub enum Streaming<T> {
Write(T),
Error(Error),
Close,
}Streaming result, i.e stream of some chunks that ends with either Close on normal execution
path or Error otherwise.
This is mainly an application protocol - all cocaine applications on enqueue method open a
stream of Streaming<String> type.
Note
Used primarily in conjunction with deserialize function inside dispatches to
map arguments into the user-defined type.
Variants
Write(T)Describes a typed chunk of data.
Error(Error)Describes an error that was occurred on a stream.
This is the terminating message. meaning that there will be no other messages after this.
CloseDescribes an explicit stream close.
This is the terminating message. meaning that there will be no other messages after this.