Trait salvo::Catcher[][src]

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

Catch error in current response.

Required methods

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

If current catcher catched error, it will return true.

Loading content...

Implementors

impl Catcher for CatcherImpl[src]

Loading content...