Enum oxide_auth_rocket::WebError
source · pub enum WebError {
Encoding,
BodyNeeded,
NotAForm,
}
Expand description
Request error at the http layer.
For performance and consistency reasons, the processing of a request body and data is delayed until it is actually required. This in turn means that some invalid requests will only be caught during the OAuth process. The possible errors are collected in this type.
Variants§
Encoding
A parameter was encoded incorrectly.
This may happen for example due to a query parameter that is not valid utf8 when the query parameters are necessary for OAuth processing.
BodyNeeded
The body was needed but not provided.
NotAForm
Form data was requested but the request was not a form.
Trait Implementations§
source§impl From<WebError> for OAuthFailure
impl From<WebError> for OAuthFailure
impl Copy for WebError
Auto Trait Implementations§
impl Freeze for WebError
impl RefUnwindSafe for WebError
impl Send for WebError
impl Sync for WebError
impl Unpin for WebError
impl UnwindSafe for WebError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more