Struct mini_server::EventHandler
source · pub struct EventHandler<'a>(/* private fields */);
Expand description
EventHandler type is a function type that defines the signature for handling events triggered
by HTTP requests. It takes references to an HTTPRequest
and a mutable HTTPResponse
as parameters.
Auto Trait Implementations§
impl<'a> Freeze for EventHandler<'a>
impl<'a> !RefUnwindSafe for EventHandler<'a>
impl<'a> !Send for EventHandler<'a>
impl<'a> !Sync for EventHandler<'a>
impl<'a> Unpin for EventHandler<'a>
impl<'a> !UnwindSafe for EventHandler<'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