nickel

Trait ErrorHandler

Source
pub trait ErrorHandler<D>:
    Send
    + 'static
    + Sync {
    // Required method
    fn handle_error(
        &self,
        _: &mut NickelError<'_, D>,
        _: &mut Request<'_, '_, D>,
    ) -> Action;
}

Required Methods§

Source

fn handle_error( &self, _: &mut NickelError<'_, D>, _: &mut Request<'_, '_, D>, ) -> Action

Implementations on Foreign Types§

Source§

impl<D: 'static> ErrorHandler<D> for fn(_: &mut NickelError<'_, D>, _: &mut Request<'_, '_, D>) -> Action

Source§

fn handle_error( &self, err: &mut NickelError<'_, D>, req: &mut Request<'_, '_, D>, ) -> Action

Implementors§