Struct mini_server::RequestHandler
source · pub struct RequestHandler<'a>(/* 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
Auto Trait Implementations§
impl<'a> Freeze for RequestHandler<'a>
impl<'a> !RefUnwindSafe for RequestHandler<'a>
impl<'a> !Send for RequestHandler<'a>
impl<'a> !Sync for RequestHandler<'a>
impl<'a> Unpin for RequestHandler<'a>
impl<'a> !UnwindSafe for RequestHandler<'a>
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