pub struct EventHandler(/* 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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EventHandler
impl !RefUnwindSafe for EventHandler
impl Send for EventHandler
impl Sync for EventHandler
impl Unpin for EventHandler
impl !UnwindSafe for EventHandler
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