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 */ }pub type ErrorHandler = Arc<dyn Fn(&GatewayRequest, GatewayError) -> GatewayResponse + Send + Sync>;A handler for converting errors into HTTP responses.
pub struct ErrorHandler { /* private fields */ }