pub struct RpcResponder<'a, Response> { /* private fields */ }Expand description
A request context’s temporary lease to an RPC Reactor’s state. You want to consume your RpcResponder as quickly as possible.
Implementations§
Source§impl<'a, Response> RpcResponder<'a, Response>where
Response: Message,
impl<'a, Response> RpcResponder<'a, Response>where
Response: Message,
Sourcepub fn unary(
self,
unary_rpc: impl Future<Output = Response>,
) -> impl Future<Output = ()>
pub fn unary( self, unary_rpc: impl Future<Output = Response>, ) -> impl Future<Output = ()>
Consume the responder by providing a future that will materialize the response to this request.
Auto Trait Implementations§
impl<'a, Response> Freeze for RpcResponder<'a, Response>
impl<'a, Response> !RefUnwindSafe for RpcResponder<'a, Response>
impl<'a, Response> Send for RpcResponder<'a, Response>where
Response: Send,
impl<'a, Response> Sync for RpcResponder<'a, Response>where
Response: Send,
impl<'a, Response> Unpin for RpcResponder<'a, Response>
impl<'a, Response> UnsafeUnpin for RpcResponder<'a, Response>
impl<'a, Response> !UnwindSafe for RpcResponder<'a, Response>
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