Struct tarpc::server::InFlightRequest [−][src]
pub struct InFlightRequest<Req, Res> { /* fields omitted */ }
Expand description
A request produced by Channel::requests.
Implementations
Returns a future that executes the request using the given service function. The service function’s output is automatically sent back to the Channel that yielded this request. The request will be executed in the scope of this request’s context.
The returned future will stop executing when the first of the following conditions is met:
- The channel that yielded this request receives a cancellation message for this request.
- The request deadline is reached.
- The service function completes.
Trait Implementations
Auto Trait Implementations
impl<Req, Res> !RefUnwindSafe for InFlightRequest<Req, Res>
impl<Req, Res> Send for InFlightRequest<Req, Res> where
Req: Send,
Res: Send,
impl<Req, Res> Sync for InFlightRequest<Req, Res> where
Req: Sync,
Res: Send,
impl<Req, Res> Unpin for InFlightRequest<Req, Res> where
Req: Unpin,
impl<Req, Res> !UnwindSafe for InFlightRequest<Req, Res>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more