[−][src]Enum oxide_auth::frontends::simple::endpoint::Error
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]
OAuthError: Into<P>,
W::Error: Into<P>,
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]
fn from(error: SimpleError<&'a mut Request<'b, 'c>>) -> Self[src]
impl<W: Debug + WebRequest> Debug for Error<W> where
W::Error: Debug, [src]
W::Error: Debug,
Auto Trait Implementations
impl<W> Unpin for Error<W> where
<W as WebRequest>::Error: Unpin,
<W as WebRequest>::Error: Unpin,
impl<W> Send for Error<W> where
<W as WebRequest>::Error: Send,
<W as WebRequest>::Error: Send,
impl<W> Sync for Error<W> where
<W as WebRequest>::Error: Sync,
<W as WebRequest>::Error: Sync,
impl<W> RefUnwindSafe for Error<W> where
<W as WebRequest>::Error: RefUnwindSafe,
<W as WebRequest>::Error: RefUnwindSafe,
impl<W> UnwindSafe for Error<W> where
<W as WebRequest>::Error: UnwindSafe,
<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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> DebugAny for T where
T: Any + Debug,
T: Any + Debug,
impl<T> UnsafeAny for T where
T: Any,
T: Any,
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
A: Array<Item = T>,
fn mapped<U, F, A>(self, f: F) -> SmallVec<A> where
A: Array<Item = U>,
F: FnMut(T) -> U,
A: Array<Item = U>,
F: FnMut(T) -> U,
impl<T, I> AsResult<T, I> for T where
I: Input,
I: Input,