pub trait RespondErr<R> {
    type Output;
    // Required method
    fn respond_err(response: R) -> Self::Output;
}Expand description
A method which can be responded Err to with a single value.
Required Associated Types§
Required Methods§
Sourcefn respond_err(response: R) -> Self::Output
 
fn respond_err(response: R) -> Self::Output
Makes an Err response from the given input.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.