Struct tokio_proto::streaming::multiplex::advanced::MultiplexMessage [−][src]
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]
impl<T, B, E> MultiplexMessage<T, B, E>
pub fn new(id: RequestId, message: Message<T, B>) -> MultiplexMessage<T, B, E>
[src]
pub fn new(id: RequestId, message: Message<T, B>) -> MultiplexMessage<T, B, E>
Create a new MultiplexMessage
pub fn error(id: RequestId, error: E) -> MultiplexMessage<T, B, E>
[src]
pub fn error(id: RequestId, error: E) -> MultiplexMessage<T, B, E>
Create a new errored MultiplexMessage
Trait Implementations
Auto Trait Implementations
impl<T, B, E> Send for MultiplexMessage<T, B, E> where
B: Send,
E: Send,
T: Send,
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> Sync for MultiplexMessage<T, B, E> where
B: Sync,
E: Sync,
T: Sync,