pub struct HttpCall { /* private fields */ }Implementations§
Source§impl HttpCall
impl HttpCall
pub fn request(&self) -> Option<&Request>
pub fn request_mut(&mut self) -> Option<&mut Request>
pub fn into_request(self) -> AnyhowResult<(Request, HttpReply)>
pub fn reply(self, response: Response)
pub fn reply_status(self, status: u16)
pub fn reply_err(self, err: Error)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for HttpCall
impl !RefUnwindSafe for HttpCall
impl !UnwindSafe for HttpCall
impl Send for HttpCall
impl Sync for HttpCall
impl Unpin for HttpCall
impl UnsafeUnpin for HttpCall
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