pub struct RequestHandler(/* private fields */);
Expand description
RequestHandler type is a function type that defines the signature for handling HTTP requests.
It takes HTTPRequest
and HashMap<String, PathExpr>
as a parameter and returns an HTTPResponse
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RequestHandler
impl !RefUnwindSafe for RequestHandler
impl Send for RequestHandler
impl Sync for RequestHandler
impl Unpin for RequestHandler
impl !UnwindSafe for RequestHandler
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