pub enum TrustProviderError {
Show 14 variants
AuthenticationInfo {
source: AuthenticationError,
},
Conflict(String),
Driver(String),
ExpirationImpossible,
ExpirationDateTimeParse {
id: String,
expires_at: i64,
},
RedelegatedImpersonationNotAllowed,
RedelegatedRolesNotAvailable,
RedelegationDeepnessExceed {
length: usize,
max_depth: usize,
},
RemainingUsesExceed,
RemainingUsesMustBeUnset,
RoleProvider {
source: RoleProviderError,
},
Serde {
source: Error,
},
StructBuilder {
source: BuilderError,
},
UnsupportedDriver(String),
}Expand description
Trust extension error.
Variants§
AuthenticationInfo
Supported authentication error.
Fields
§
source: AuthenticationErrorThe source of the error.
Conflict(String)
Conflict.
Driver(String)
Driver error.
ExpirationImpossible
Trust expiration is more than the redelegated trust can provide.
ExpirationDateTimeParse
DateTime parsing error.
RedelegatedImpersonationNotAllowed
Relegated trust does not allow impersonation.
RedelegatedRolesNotAvailable
Relegation trust must not add new roles.
RedelegationDeepnessExceed
Redelegation chain is longer than allowed.
RemainingUsesExceed
Remaining uses of the trust is exceeded.
RemainingUsesMustBeUnset
Remaining uses must be unset to redelegate a trust.
RoleProvider
Role provider error.
Fields
§
source: RoleProviderErrorThe source of the error.
Serde
(de)serialization error.
StructBuilder
Structures builder error.
Fields
§
source: BuilderErrorThe source of the error.
UnsupportedDriver(String)
Unsupported driver.
Trait Implementations§
Source§impl Debug for TrustProviderError
impl Debug for TrustProviderError
Source§impl Display for TrustProviderError
impl Display for TrustProviderError
Source§impl Error for TrustProviderError
impl Error for TrustProviderError
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<AuthenticationError> for TrustProviderError
impl From<AuthenticationError> for TrustProviderError
Source§fn from(source: AuthenticationError) -> Self
fn from(source: AuthenticationError) -> Self
Converts to this type from the input type.
Source§impl From<BuilderError> for TrustProviderError
impl From<BuilderError> for TrustProviderError
Source§fn from(source: BuilderError) -> Self
fn from(source: BuilderError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for TrustProviderError
impl From<Error> for TrustProviderError
Source§impl From<RoleProviderError> for TrustProviderError
impl From<RoleProviderError> for TrustProviderError
Source§fn from(source: RoleProviderError) -> Self
fn from(source: RoleProviderError) -> Self
Converts to this type from the input type.
Source§impl From<TrustProviderError> for KeystoneApiError
impl From<TrustProviderError> for KeystoneApiError
Source§fn from(source: TrustProviderError) -> Self
fn from(source: TrustProviderError) -> 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.
Source§impl From<TrustProviderError> for TokenProviderError
impl From<TrustProviderError> for TokenProviderError
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 TrustProviderError
impl !RefUnwindSafe for TrustProviderError
impl Send for TrustProviderError
impl Sync for TrustProviderError
impl Unpin for TrustProviderError
impl UnsafeUnpin for TrustProviderError
impl !UnwindSafe for TrustProviderError
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