[−][src]Struct tokio_proto::streaming::multiplex::advanced::MultiplexMessage
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
Auto Trait Implementations
impl<T, B, E> RefUnwindSafe for MultiplexMessage<T, B, E> where
B: RefUnwindSafe,
E: RefUnwindSafe,
T: RefUnwindSafe,
B: RefUnwindSafe,
E: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, B, E> Send for MultiplexMessage<T, B, E> where
B: Send,
E: Send,
T: Send,
B: Send,
E: Send,
T: Send,
impl<T, B, E> Sync for MultiplexMessage<T, B, E> where
B: Sync,
E: Sync,
T: Sync,
B: Sync,
E: Sync,
T: Sync,
impl<T, B, E> Unpin for MultiplexMessage<T, B, E> where
B: Unpin,
E: Unpin,
T: Unpin,
B: Unpin,
E: Unpin,
T: Unpin,
impl<T, B, E> UnwindSafe for MultiplexMessage<T, B, E> where
B: UnwindSafe,
E: UnwindSafe,
T: UnwindSafe,
B: UnwindSafe,
E: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,