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

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

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.

Tuple Fields of Web

0: W::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.

Tuple Fields of OAuth

0: OAuthError

Implementations

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

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

Performs the conversion.

Performs the conversion.

Should always be Self

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.