pub struct Request<A, R> {
pub responder: Sender<R>,
pub arguments: A,
}
Expand description
Asynchronous request sent to the service.
Fields§
§responder: Sender<R>
Oneshot channel for the service to send back the response.
arguments: A
Request arguments.
Implementations§
Auto Trait Implementations§
impl<A, R> Freeze for Request<A, R>where
A: Freeze,
impl<A, R> !RefUnwindSafe for Request<A, R>
impl<A, R> Send for Request<A, R>
impl<A, R> Sync for Request<A, R>
impl<A, R> Unpin for Request<A, R>where
A: Unpin,
impl<A, R> !UnwindSafe for Request<A, R>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more