[][src]Struct tokio_proto::streaming::multiplex::advanced::MultiplexMessage

pub struct MultiplexMessage<T, B, E> {
    pub id: RequestId,
    pub message: Result<Message<T, B>, E>,
    pub solo: bool,
}

Message used to communicate through the multiplex dispatch

Fields

id: RequestId

Request ID

message: Result<Message<T, B>, E>

Message

solo: bool

True if message has no pair (request / response)

Methods

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

pub fn new(id: RequestId, message: Message<T, B>) -> MultiplexMessage<T, B, E>[src]

Create a new MultiplexMessage

pub fn error(id: RequestId, error: E) -> MultiplexMessage<T, B, E>[src]

Create a new errored MultiplexMessage

Trait Implementations

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

Auto Trait Implementations

impl<T, B, E> RefUnwindSafe for MultiplexMessage<T, B, E> where
    B: RefUnwindSafe,
    E: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, B, E> Send for MultiplexMessage<T, B, E> where
    B: Send,
    E: Send,
    T: Send

impl<T, B, E> Sync for MultiplexMessage<T, B, E> where
    B: Sync,
    E: Sync,
    T: Sync

impl<T, B, E> Unpin for MultiplexMessage<T, B, E> where
    B: Unpin,
    E: Unpin,
    T: Unpin

impl<T, B, E> UnwindSafe for MultiplexMessage<T, B, E> where
    B: UnwindSafe,
    E: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.