Enum seamless::api::RouteError

source ·
pub enum RouteError<B, E> {
    NotFound(Request<B>),
    Err(E),
}
Expand description

A route is either not found, or we attempted to run it and ran into an issue.

Variants§

§

NotFound(Request<B>)

No route matched the provided request, so we hand it back.

§

Err(E)

The matching route failed; this is the error.

Implementations§

Assume that the RouteError contains an error and attempt to unwrap this

Panics

Panics if the RouteError does not contain an error

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.