pub struct HttpResponder { /* private fields */ }Expand description
The one-shot reply channel handed to an HttpHandler.
Consuming it with respond or fail
fires the C++ callback exactly once. Dropping it without replying
cancels the request with a transport error rather than leaving library
code waiting forever — which is why the type owns the handle rather than
exposing it.
Send, so a handler may hand it to a worker thread or an async runtime
and reply later.
Implementations§
Trait Implementations§
Source§impl Debug for HttpResponder
impl Debug for HttpResponder
Source§impl Drop for HttpResponder
impl Drop for HttpResponder
impl Send for HttpResponder
Auto Trait Implementations§
impl !Sync for HttpResponder
impl Freeze for HttpResponder
impl RefUnwindSafe for HttpResponder
impl Unpin for HttpResponder
impl UnsafeUnpin for HttpResponder
impl UnwindSafe for HttpResponder
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