Enum seamless::api::RouteError[][src]

pub enum RouteError<E> {
    NotFound(Request<Vec<u8>>),
    Err(E),
}

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

Variants

NotFound(Request<Vec<u8>>)

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

Err(E)

The matching route failed; this is the error.

Implementations

impl<E> RouteError<E>[src]

pub fn unwrap_err(self) -> E[src]

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

Panics

Panics if the RouteError does not contain an error

Trait Implementations

impl<E: Debug> Debug for RouteError<E>[src]

Auto Trait Implementations

impl<E> !RefUnwindSafe for RouteError<E>[src]

impl<E> Send for RouteError<E> where
    E: Send
[src]

impl<E> Sync for RouteError<E> where
    E: Sync
[src]

impl<E> Unpin for RouteError<E> where
    E: Unpin
[src]

impl<E> !UnwindSafe for RouteError<E>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.