Enum tokio_proto::streaming::Message [] [src]

pub enum Message<T, B> {
    WithoutBody(T),
    WithBody(T, B),
}

Message sent and received from a multiplexed service

Variants

Has no associated streaming body

Has associated streaming body

Methods

impl<T, B> Message<T, B>
[src]

Returns a reference to the inner value

Returns a mutable reference to the inner value

Consumes the value and returns the inner value

If the Message value has an associated body stream, return it. The original Message value will then become a WithoutBody variant.

Trait Implementations

impl<T, B> PartialEq<T> for Message<T, B> where T: PartialEq
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T, B> Deref for Message<T, B>
[src]

The resulting type after dereferencing

The method called to dereference a value

impl<T, B> DerefMut for Message<T, B>
[src]

The method called to mutably dereference a value

impl<T, B> Debug for Message<T, B> where T: Debug
[src]

Formats the value using the given formatter.