pub enum WebError {
Endpoint(OAuthError),
Header(InvalidHeaderValue),
Encoding,
Form,
Query,
Body,
Authorization,
InternalError(Option<String>),
}
Expand description
The error type for Oxide Auth operations
Variants§
Endpoint(OAuthError)
Errors occuring in Endpoint operations
Header(InvalidHeaderValue)
Errors occuring in Endpoint operations
Encoding
Errors with the request encoding
Form
Request body could not be parsed as a form
Query
Request query was absent or could not be parsed
Body
Request query was absent or could not be parsed
Authorization
The Authorization header was invalid
InternalError(Option<String>)
General internal server error
Trait Implementations§
Source§impl Error for WebError
impl Error for WebError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error<OAuthRequest>> for WebError
impl From<Error<OAuthRequest>> for WebError
Source§fn from(e: Error<OAuthRequest>) -> Self
fn from(e: Error<OAuthRequest>) -> Self
Converts to this type from the input type.
Source§impl From<InvalidHeaderValue> for WebError
impl From<InvalidHeaderValue> for WebError
Source§fn from(e: InvalidHeaderValue) -> Self
fn from(e: InvalidHeaderValue) -> Self
Converts to this type from the input type.
Source§impl From<OAuthError> for WebError
impl From<OAuthError> for WebError
Source§fn from(e: OAuthError) -> Self
fn from(e: OAuthError) -> Self
Converts to this type from the input type.
Source§impl IntoResponse for WebError
impl IntoResponse for WebError
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
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