pub enum KeystoneError {
Show 18 variants
ApplicationCredential {
source: ApplicationCredentialProviderError,
},
AssignmentProvider {
source: AssignmentProviderError,
},
CatalogProvider {
source: CatalogProviderError,
},
FederationProvider {
source: FederationProviderError,
},
IdentityProvider {
source: IdentityProviderError,
},
IdentityMapping {
source: IdentityMappingProviderError,
},
IO {
source: Error,
},
Json {
source: Error,
},
K8sAuthProvider {
source: K8sAuthProviderError,
},
Policy {
source: PolicyError,
},
PolicyEnforcementNotAvailable,
ResourceProvider {
source: ResourceProviderError,
},
RevokeProvider {
source: RevokeProviderError,
},
RoleProvider {
source: RoleProviderError,
},
TokenProvider {
source: TokenProviderError,
},
TrustProvider {
source: TrustProviderError,
},
UrlParse {
source: ParseError,
},
Provider {
source: Box<dyn Error + Send + Sync + 'static>,
},
}Expand description
Keystone error.
Variants§
ApplicationCredential
Application credential provider.
Fields
§
source: ApplicationCredentialProviderErrorThe source of the error.
AssignmentProvider
Assignment provider.
Fields
§
source: AssignmentProviderErrorThe source of the error.
CatalogProvider
Catalog provider.
Fields
§
source: CatalogProviderErrorThe source of the error.
FederationProvider
Federation provider.
Fields
§
source: FederationProviderErrorThe source of the error.
IdentityProvider
Identity provider.
Fields
§
source: IdentityProviderErrorThe source of the error.
IdentityMapping
Identity mapping provider.
Fields
§
source: IdentityMappingProviderErrorThe source of the error.
IO
IO error.
Json
Json serialization error.
K8sAuthProvider
K8s auth provider.
Fields
§
source: K8sAuthProviderErrorThe source of the error.
Policy
Policy engine.
Fields
§
source: PolicyErrorThe source of the error.
PolicyEnforcementNotAvailable
Policy engine is not available.
ResourceProvider
Resource provider.
Fields
§
source: ResourceProviderErrorThe source of the error.
RevokeProvider
Revoke provider error.
Fields
§
source: RevokeProviderErrorThe source of the error.
RoleProvider
Role provider.
Fields
§
source: RoleProviderErrorThe source of the error.
TokenProvider
Token provider.
Fields
§
source: TokenProviderErrorThe source of the error.
TrustProvider
Trust provider.
Fields
§
source: TrustProviderErrorThe source of the error.
UrlParse
Url parsing error.
Fields
§
source: ParseErrorProvider
Trait Implementations§
Source§impl Debug for KeystoneError
impl Debug for KeystoneError
Source§impl Display for KeystoneError
impl Display for KeystoneError
Source§impl Error for KeystoneError
impl Error for KeystoneError
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<ApplicationCredentialProviderError> for KeystoneError
impl From<ApplicationCredentialProviderError> for KeystoneError
Source§fn from(source: ApplicationCredentialProviderError) -> Self
fn from(source: ApplicationCredentialProviderError) -> Self
Converts to this type from the input type.
Source§impl From<AssignmentProviderError> for KeystoneError
impl From<AssignmentProviderError> for KeystoneError
Source§fn from(source: AssignmentProviderError) -> Self
fn from(source: AssignmentProviderError) -> Self
Converts to this type from the input type.
Source§impl From<CatalogProviderError> for KeystoneError
impl From<CatalogProviderError> for KeystoneError
Source§fn from(source: CatalogProviderError) -> Self
fn from(source: CatalogProviderError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for KeystoneError
impl From<Error> for KeystoneError
Source§impl From<Error> for KeystoneError
impl From<Error> for KeystoneError
Source§impl From<FederationProviderError> for KeystoneError
impl From<FederationProviderError> for KeystoneError
Source§fn from(source: FederationProviderError) -> Self
fn from(source: FederationProviderError) -> Self
Converts to this type from the input type.
Source§impl From<IdentityMappingProviderError> for KeystoneError
impl From<IdentityMappingProviderError> for KeystoneError
Source§fn from(source: IdentityMappingProviderError) -> Self
fn from(source: IdentityMappingProviderError) -> Self
Converts to this type from the input type.
Source§impl From<IdentityProviderError> for KeystoneError
impl From<IdentityProviderError> for KeystoneError
Source§fn from(source: IdentityProviderError) -> Self
fn from(source: IdentityProviderError) -> Self
Converts to this type from the input type.
Source§impl From<K8sAuthProviderError> for KeystoneError
impl From<K8sAuthProviderError> for KeystoneError
Source§fn from(source: K8sAuthProviderError) -> Self
fn from(source: K8sAuthProviderError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for KeystoneError
impl From<ParseError> for KeystoneError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<PolicyError> for KeystoneError
impl From<PolicyError> for KeystoneError
Source§fn from(source: PolicyError) -> Self
fn from(source: PolicyError) -> Self
Converts to this type from the input type.
Source§impl From<ResourceProviderError> for KeystoneError
impl From<ResourceProviderError> for KeystoneError
Source§fn from(source: ResourceProviderError) -> Self
fn from(source: ResourceProviderError) -> Self
Converts to this type from the input type.
Source§impl From<RevokeProviderError> for KeystoneError
impl From<RevokeProviderError> for KeystoneError
Source§fn from(source: RevokeProviderError) -> Self
fn from(source: RevokeProviderError) -> Self
Converts to this type from the input type.
Source§impl From<RoleProviderError> for KeystoneError
impl From<RoleProviderError> for KeystoneError
Source§fn from(source: RoleProviderError) -> Self
fn from(source: RoleProviderError) -> Self
Converts to this type from the input type.
Source§impl From<TokenProviderError> for KeystoneError
impl From<TokenProviderError> for KeystoneError
Source§fn from(source: TokenProviderError) -> Self
fn from(source: TokenProviderError) -> Self
Converts to this type from the input type.
Source§impl From<TrustProviderError> for KeystoneError
impl From<TrustProviderError> for KeystoneError
Source§fn from(source: TrustProviderError) -> Self
fn from(source: TrustProviderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KeystoneError
impl !RefUnwindSafe for KeystoneError
impl Send for KeystoneError
impl Sync for KeystoneError
impl Unpin for KeystoneError
impl UnsafeUnpin for KeystoneError
impl !UnwindSafe for KeystoneError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.
Source§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP