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

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

A multiplexed protocol frame

Variants

[]

Either a request or a response.

[]

Body frame.

[]

Error

Methods

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

[src]
[]

Return the request ID associated with the frame.

[src]
[]

Unwraps a frame, yielding the content of the Message.

[src]
[]

Unwraps a frame, yielding the content of the Body.

[src]
[]

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]

[src]
[]

Formats the value using the given formatter.

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

[src]
[]

Returns a copy of the value. Read more

1.0.0
[src]
[]

Performs copy-assignment from source. Read more