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

Describes a typed chunk of data.

Describes an error that was occurred on a stream.

This is the terminating message. meaning that there will be no other messages after this.

Describes an explicit stream close.

This is the terminating message. meaning that there will be no other messages after this.

Trait Implementations

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T> Send for Streaming<T> where
    T: Send

impl<T> Sync for Streaming<T> where
    T: Sync