Trait salvo_core::Catcher[][src]

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

Catch error in current response.

Required methods

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

Implementors