Macro hrpc::bail_result_as_response [−][src]
macro_rules! bail_result_as_response {
($res : expr) => { ... };
($res : expr, | $err : ident | $func : expr) => { ... };
}
Expand description
Takes a Result
, returns the error as a HTTP response if it’s Err
,
otherwise returns the Ok
value.