logo
pub trait Catcher: Send + Sync + 'static {
    fn catch(&self, req: &Request, depot: &Depot, res: &mut Response) -> bool;
}
Expand description

Catch error in current response.

Required Methods

If the current catcher caught the error, it will returns true.

Implementors