#[non_exhaustive]pub enum AuthError {
Show 14 variants
AuthReceipt(AuthReceiptResponse),
AuthReceiptNotString,
AuthToken {
source: AuthTokenError,
},
AuthTokenNotInResponse,
AuthTokenNotString,
AuthValueNotSupplied(String),
Identity(IdentityError),
PluginMalformedRequirement,
Serde {
source: Error,
},
HeaderValue {
source: InvalidHeaderValue,
},
Plugin {
source: Box<dyn Error + Send + Sync + 'static>,
},
Reqwest {
source: Error,
},
UnknownAuth {
code: u16,
message: Option<String>,
},
Url {
source: ParseError,
},
}Expand description
Authentication error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AuthReceipt(AuthReceiptResponse)
Authentication rejected with a receipt.
AuthReceiptNotString
openstack-auth-receipt cannot be converted to string.
AuthToken
AuthToken error.
Fields
§
source: AuthTokenErrorThe source of the error.
AuthTokenNotInResponse
Token is missing in the authentication response.
AuthTokenNotString
X-Subject-Token cannot be converted to string.
AuthValueNotSupplied(String)
Necessary data was not supplied to the auth method.
Identity(IdentityError)
Keystone error.
PluginMalformedRequirement
Necessary data was not supplied to the auth method.
Serde
(De)Serialization error.
HeaderValue
Header error.
Fields
§
source: InvalidHeaderValueThe source of the error.
Plugin
AuthPlugin error.
Reqwest
Reqwest error.
UnknownAuth
Identity error not supported.
Url
Url parse error.
Fields
§
source: ParseErrorThe error source
Implementations§
Trait Implementations§
Source§impl Error for AuthError
impl Error for AuthError
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<AuthTokenError> for AuthError
impl From<AuthTokenError> for AuthError
Source§fn from(source: AuthTokenError) -> Self
fn from(source: AuthTokenError) -> Self
Converts to this type from the input type.
Source§impl From<AuthTokenScopeError> for AuthError
Explicitly implement From to easier propagate nested errors
impl From<AuthTokenScopeError> for AuthError
Explicitly implement From to easier propagate nested errors
Source§fn from(source: AuthTokenScopeError) -> Self
fn from(source: AuthTokenScopeError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidHeaderValue> for AuthError
impl From<InvalidHeaderValue> for AuthError
Source§fn from(source: InvalidHeaderValue) -> Self
fn from(source: InvalidHeaderValue) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for AuthError
impl From<ParseError> for AuthError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AuthError
impl !RefUnwindSafe for AuthError
impl Send for AuthError
impl Sync for AuthError
impl Unpin for AuthError
impl UnsafeUnpin for AuthError
impl !UnwindSafe for AuthError
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