Trait common_error::ext::ErrorExt
source · pub trait ErrorExt: StackError {
// Required method
fn as_any(&self) -> &dyn Any;
// Provided methods
fn status_code(&self) -> StatusCode { ... }
fn output_msg(&self) -> String
where Self: Sized { ... }
}
Expand description
Extension to Error
in std.
Required Methods§
Provided Methods§
sourcefn status_code(&self) -> StatusCode
fn status_code(&self) -> StatusCode
Map this error to StatusCode.