pub struct Request<A, B> {
pub msg: A,
pub tx: Sender<B>,
}Expand description
A Message with input A, returning a response B.
This implements Message with oneshot::Receiver as output.
Fields§
§msg: A§tx: Sender<B>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<A, B> Freeze for Request<A, B>where
A: Freeze,
impl<A, B> !RefUnwindSafe for Request<A, B>
impl<A, B> Send for Request<A, B>
impl<A, B> Sync for Request<A, B>
impl<A, B> Unpin for Request<A, B>where
A: Unpin,
impl<A, B> !UnwindSafe for Request<A, B>
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