fn unwrap_or_500(result: Result<Box<dyn Reply>>) -> Box<dyn Reply> {
    match result {
        Ok(resp) => resp,
        Err(e) => {
            warn!("Request handler exception: {:#}", e);
            Box::new(warp::http::StatusCode::INTERNAL_SERVER_ERROR)
        }
    }
}
/// Return 500 on any error raised by the request handler.
Return 500 on any error raised by the request handler.
Return 500 on any error raised by the request handler .
fn unwrap_or_500(result: Result<Box<dyn Reply>>) -> Box<dyn Reply> {
    match result {
        Ok(resp) => resp,
        Err(e) => {
            warn!("Request handler exception: {:#}", e);
            Box::new(warp::http::StatusCode::INTERNAL_SERVER_ERROR)
        }
    }
}
fn unwrap_or_500 ( result : Result < Box < dyn Reply > > ) -> Box < dyn Reply > { match result { Ok ( resp ) => resp , Err ( e ) => { warn ! ( " " e ) ; Box :: new ( warp :: http :: StatusCode :: INTERNAL_SERVER_ERROR ) } } }
Return 500 on any error raised by the request handler.
Return 500 on any error raised by the request handler .
result
Result<Box<dyn Reply>>
result
Result<Box<dyn Reply>>