pub struct MultiplexMessage<T, B, E> {
pub id: RequestId,
pub message: Result<Message<T, B>, E>,
pub solo: bool,
}
Expand description
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)
Implementations§
Source§impl<T, B, E> MultiplexMessage<T, B, E>
impl<T, B, E> MultiplexMessage<T, B, E>
Sourcepub fn new(id: RequestId, message: Message<T, B>) -> MultiplexMessage<T, B, E>
pub fn new(id: RequestId, message: Message<T, B>) -> MultiplexMessage<T, B, E>
Create a new MultiplexMessage
Sourcepub fn error(id: RequestId, error: E) -> MultiplexMessage<T, B, E>
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> Freeze for MultiplexMessage<T, B, E>
impl<T, B, E> RefUnwindSafe for MultiplexMessage<T, B, E>
impl<T, B, E> Send for MultiplexMessage<T, B, E>
impl<T, B, E> Sync for MultiplexMessage<T, B, E>
impl<T, B, E> Unpin for MultiplexMessage<T, B, E>
impl<T, B, E> UnwindSafe for MultiplexMessage<T, B, E>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more