RespondErr

Trait RespondErr 

Source
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§

Source

type Output

The returned response type.

Required Methods§

Source

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.

Implementors§