pub struct SendResponse<T> { /* private fields */ }
Expand description
Send a response in reply to a received request.
Implementations§
Source§impl<T> SendResponse<T>
impl<T> SendResponse<T>
Sourcepub fn send_response(self, response: T)
pub fn send_response(self, response: T)
Resolve the pending request future for the linked request with the given response.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for SendResponse<T>
impl<T> !RefUnwindSafe for SendResponse<T>
impl<T> Send for SendResponse<T>where
T: Send,
impl<T> Sync for SendResponse<T>where
T: Send,
impl<T> Unpin for SendResponse<T>
impl<T> !UnwindSafe for SendResponse<T>
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