Trait salvo_core::Catcher [−][src]
pub trait Catcher: Send + Sync + 'static { fn catch(&self, req: &Request, res: &mut Response) -> bool; }
Catch error in current response.
Required methods
fn catch(&self, req: &Request, res: &mut Response) -> bool
[src]
If current catcher catched error, it will return true.