Trait salvo::Catcher[][src]

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

Catch error in current response.

Required methods

fn catch(&self, req: &Request, res: &mut Response) -> bool[src]

Expand description

If current catcher catched error, it will return true.

Loading content...

Implementors

impl Catcher for CatcherImpl[src]

pub fn catch(&self, req: &Request, res: &mut Response) -> bool[src]

Loading content...