pub trait StatusCodeExt {
// Required method
fn to_replicate_error(self, body: String) -> Error;
}Expand description
Helper trait for converting HTTP status codes to errors
Required Methods§
fn to_replicate_error(self, body: String) -> Error
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".