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]
fn new(id: RequestId, message: Message<T, B>) -> MultiplexMessage<T, B, E>
[src]
Create a new MultiplexMessage
fn error(id: RequestId, error: E) -> MultiplexMessage<T, B, E>
[src]
Create a new errored MultiplexMessage