pub struct ServedRequest<'a, M, Req, Resp>where
M: RawMutex,{ /* private fields */ }Expand description
Server-side completion handle for one request taken from RpcService::serve.
The request value itself is returned separately from RpcService::serve; this type only
carries Self::respond and drop behavior.
§Completion
- Call
Self::respondwith a successfulRespto complete the RPC. - Drop this value without calling
Self::respondto complete the RPC withRequestDroppedErroron the client.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, M, Req, Resp> Freeze for ServedRequest<'a, M, Req, Resp>
impl<'a, M, Req, Resp> !RefUnwindSafe for ServedRequest<'a, M, Req, Resp>
impl<'a, M, Req, Resp> Send for ServedRequest<'a, M, Req, Resp>
impl<'a, M, Req, Resp> Sync for ServedRequest<'a, M, Req, Resp>
impl<'a, M, Req, Resp> Unpin for ServedRequest<'a, M, Req, Resp>
impl<'a, M, Req, Resp> UnsafeUnpin for ServedRequest<'a, M, Req, Resp>
impl<'a, M, Req, Resp> !UnwindSafe for ServedRequest<'a, M, Req, Resp>
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