pub enum Message<T, B> {
WithoutBody(T),
WithBody(T, B),
}
Expand description
Message sent and received from a multiplexed service
Variants§
Implementations§
Source§impl<T, B> Message<T, B>
impl<T, B> Message<T, B>
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Consumes the value and returns the inner value
Trait Implementations§
Auto Trait Implementations§
impl<T, B> Freeze for Message<T, B>
impl<T, B> RefUnwindSafe for Message<T, B>where
T: RefUnwindSafe,
B: RefUnwindSafe,
impl<T, B> Send for Message<T, B>
impl<T, B> Sync for Message<T, B>
impl<T, B> Unpin for Message<T, B>
impl<T, B> UnwindSafe for Message<T, B>where
T: UnwindSafe,
B: UnwindSafe,
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