Enum oxide_auth_actix::WebError
source · pub enum WebError {
Endpoint(OAuthError),
Header(InvalidHeaderValue),
Encoding,
Form,
Query,
Body,
Authorization,
Canceled,
Mailbox,
InternalError(Option<String>),
}
Expand description
The error type for Oxide Auth operations
Variants§
Endpoint(OAuthError)
Errors occuring in Endpoint operations
Header(InvalidHeaderValue)
Errors occuring when producing Headers
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 was missing a body
Authorization
The Authorization header was invalid
Canceled
Processing part of the request was canceled
Mailbox
An actor’s mailbox was full
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)>
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<MailboxError> for WebError
impl From<MailboxError> for WebError
source§fn from(e: MailboxError) -> Self
fn from(e: MailboxError) -> 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 ResponseError for WebError
impl ResponseError for WebError
source§fn status_code(&self) -> StatusCode
fn status_code(&self) -> StatusCode
Returns appropriate status code for error. Read more
source§fn error_response(&self) -> HttpResponse
fn error_response(&self) -> HttpResponse
Creates full response for error. Read more
Auto Trait Implementations§
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