pub trait ErrorHandler<V> {
    type Response: IntoResponse;

    // Required method
    fn handle_error<'life0, 'async_trait>(
        &'life0 self,
        error: Error<V>
    ) -> Pin<Box<dyn Future<Output = Self::Response> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

The error handler for the validation errors.

Required Associated Types§

source

type Response: IntoResponse

Whatever the handler should respond with.

Required Methods§

source

fn handle_error<'life0, 'async_trait>( &'life0 self, error: Error<V> ) -> Pin<Box<dyn Future<Output = Self::Response> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Handler the validation error.

Implementors§