pub enum RotationError {
Validation(RotationValidationError),
MissingField(MissingFieldError),
Chrono(ParseError),
UnrecognizedVariant,
MissingOrganizationKey,
Crypto(CryptoError),
AccessToken(AccessTokenError),
Sealed(DataEnvelopeError),
TargetSystemNotFound,
Api(ApiError),
}Expand description
Errors returned from the PAM rotation clients.
Variants§
Validation(RotationValidationError)
The request failed local validation before being sent to the server.
MissingField(MissingFieldError)
The server response was missing a field required to build the requested type.
Chrono(ParseError)
A date field in the server response could not be parsed.
UnrecognizedVariant
A caller passed an Unknown variant (a value only a newer server returns) in a field sent
back to the server, which the SDK cannot name on the wire.
MissingOrganizationKey
The caller is not a member of the organization they addressed, or its key is not in the key store.
Crypto(CryptoError)
A cryptographic operation failed while registering a connector.
AccessToken(AccessTokenError)
Minting a connector’s access-token secrets failed.
Sealed(DataEnvelopeError)
Sealing a blob failed. Unsealing failures degrade to None instead.
TargetSystemNotFound
The named target system does not exist in this organization.
Api(ApiError)
A network or (de)serialization error occurred while calling the server.
Trait Implementations§
Source§impl Debug for RotationError
impl Debug for RotationError
Source§impl Display for RotationError
impl Display for RotationError
Source§impl Error for RotationError
impl Error for RotationError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl FlatError for RotationError
impl FlatError for RotationError
fn error_variant(&self) -> &'static str
Source§impl From<AccessTokenError> for RotationError
impl From<AccessTokenError> for RotationError
Source§impl From<ApiError> for RotationError
impl From<ApiError> for RotationError
Source§impl From<CryptoError> for RotationError
impl From<CryptoError> for RotationError
Source§impl From<DataEnvelopeError> for RotationError
impl From<DataEnvelopeError> for RotationError
Source§impl From<MissingFieldError> for RotationError
impl From<MissingFieldError> for RotationError
Source§impl From<ParseError> for RotationError
impl From<ParseError> for RotationError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Source§impl From<RotationError> for JsValue
impl From<RotationError> for JsValue
Source§fn from(error: RotationError) -> Self
fn from(error: RotationError) -> Self
Source§impl From<RotationValidationError> for RotationError
impl From<RotationValidationError> for RotationError
Source§fn from(source: RotationValidationError) -> Self
fn from(source: RotationValidationError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for RotationError
impl !UnwindSafe for RotationError
impl Freeze for RotationError
impl Send for RotationError
impl Sync for RotationError
impl Unpin for RotationError
impl UnsafeUnpin for RotationError
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Arc<> Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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 more