pub struct ActiveRequest<'s, Req, Resp>{ /* private fields */ }Expand description
A received request, used to send the response.
Implementations§
Source§impl<Req, Resp> ActiveRequest<'_, Req, Resp>
impl<Req, Resp> ActiveRequest<'_, Req, Resp>
Sourcepub fn respond_copy(self, resp: Resp) -> Result<(), ExecutorError>
pub fn respond_copy(self, resp: Resp) -> Result<(), ExecutorError>
Send a response by value and notify the client’s listener.
Auto Trait Implementations§
impl<'s, Req, Resp> Freeze for ActiveRequest<'s, Req, Resp>
impl<'s, Req, Resp> !RefUnwindSafe for ActiveRequest<'s, Req, Resp>
impl<'s, Req, Resp> !Send for ActiveRequest<'s, Req, Resp>
impl<'s, Req, Resp> !Sync for ActiveRequest<'s, Req, Resp>
impl<'s, Req, Resp> Unpin for ActiveRequest<'s, Req, Resp>where
Resp: Unpin,
impl<'s, Req, Resp> UnsafeUnpin for ActiveRequest<'s, Req, Resp>
impl<'s, Req, Resp> !UnwindSafe for ActiveRequest<'s, 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