[][src]Enum oxide_auth::frontends::simple::endpoint::Error

pub enum Error<W: WebRequest> {
    Web(W::Error),
    OAuth(OAuthError),
}

Errors either caused by the underlying web types or the library.

Variants

Web(W::Error)

An operation on a request or response failed.

Typically, this should be represented as a 500–Internal Server Error.

OAuth(OAuthError)

Some part of the library signaled failure.

No response has been generated, and in some cases doing so should be done with care or under the consideration of an attacker currently trying to abuse the system.

Methods

impl<W: WebRequest> Error<W>[src]

pub fn pack<P>(self) -> P where
    OAuthError: Into<P>,
    W::Error: Into<P>, 
[src]

Convert into a single error type.

Note that the additional information whether the error occurred in the web components or during the flow needs to be implicitely contained in the types. Otherwise, this information is lost and you should use or provide a From<Error<W>> implementation instead. This method is still useful for frontends providing a standard error type that interacts with their web server library.

Trait Implementations

impl<'a, 'b, 'c: 'b> From<Error<&'a mut Request<'b, 'c>>> for IronError[src]

impl<W: Debug + WebRequest> Debug for Error<W> where
    W::Error: Debug
[src]

Auto Trait Implementations

impl<W> Unpin for Error<W> where
    <W as WebRequest>::Error: Unpin

impl<W> Send for Error<W> where
    <W as WebRequest>::Error: Send

impl<W> Sync for Error<W> where
    <W as WebRequest>::Error: Sync

impl<W> RefUnwindSafe for Error<W> where
    <W as WebRequest>::Error: RefUnwindSafe

impl<W> UnwindSafe for Error<W> where
    <W as WebRequest>::Error: UnwindSafe

Blanket Implementations

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.

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

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

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

impl<T> Erased for T

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DebugAny for T where
    T: Any + Debug

impl<T> UnsafeAny for T where
    T: Any

impl<T> IntoCollection<T> for T

impl<T, I> AsResult<T, I> for T where
    I: Input,