Skip to main content

ErrorHandler

Type Alias ErrorHandler 

Source
pub type ErrorHandler = Arc<dyn Fn(&GatewayRequest, GatewayError) -> GatewayResponse + Send + Sync>;
Expand description

A handler for converting errors into HTTP responses.

Aliased Typeยง

pub struct ErrorHandler { /* private fields */ }