Enum tokio_proto::streaming::pipeline::Frame [] [src]

pub enum Frame<T, B, E> {
    Message {
        message: T,
        body: bool,
    },
    Body {
        chunk: Option<B>,
    },
    Error {
        error: E,
    },
}

A pipelined protocol frame

Variants

Either a request or a response

Fields

The message value

Set to true when body frames will follow

Body frame. None indicates that the body is done streaming.

Fields

Body chunk. Setting to None indicates that the body is done streaming and there will be no further body frames sent with the given request ID.

Error

Fields

Error value

Methods

impl<T, B, E> Frame<T, B, E>
[src]

Unwraps a frame, yielding the content of the Message.

Unwraps a frame, yielding the content of the Body.

Unwraps a frame, yielding the content of the Error.

Trait Implementations

impl<T: Debug, B: Debug, E: Debug> Debug for Frame<T, B, E>
[src]

Formats the value using the given formatter.

impl<T: Clone, B: Clone, E: Clone> Clone for Frame<T, B, E>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more