pub struct Request<T>(/* private fields */);Expand description
A marker type for request messages.
Trait Implementations§
Source§impl<I: Send + 'static, R: Send + 'static> MessageSpecifier<I> for Request<R>
impl<I: Send + 'static, R: Send + 'static> MessageSpecifier<I> for Request<R>
Source§fn into_payload(msg: I) -> (Self::Payload, Self::Output)
fn into_payload(msg: I) -> (Self::Payload, Self::Output)
Convert a message into its payload and output.
Source§fn from_payload(payload: Self::Payload) -> I
fn from_payload(payload: Self::Payload) -> I
Convert a payload back into the message.
Auto Trait Implementations§
impl<T> Freeze for Request<T>
impl<T> RefUnwindSafe for Request<T>where
T: RefUnwindSafe,
impl<T> Send for Request<T>where
T: Send,
impl<T> Sync for Request<T>where
T: Sync,
impl<T> Unpin for Request<T>where
T: Unpin,
impl<T> UnsafeUnpin for Request<T>
impl<T> UnwindSafe for Request<T>where
T: 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