[go: up one dir, main page]

box_error

Function box_error 

Source
pub fn box_error<E: Error + Send + 'static>(error: E) -> BoxError
Expand description

A helper to convert a concrete error type into a Box<dyn Error + Send>

ยงExample

Response::builder().body(Body::empty()).map_err(box_error);