pub enum RotationFailureCode {
Show 14 variants
NoActiveSession,
CredentialsUnresolved,
InvalidPolicy,
UnsupportedKind,
TargetRejected,
TargetUnreachable,
VerificationFailed,
ScriptFailed,
ScriptTimeout,
CipherWriteRejected,
CipherEncryptFailed,
SealedDataRejected,
Internal,
Unknown,
}Expand description
Why a rotation attempt failed, as the connector reports it. On the wire it is a snake_case
token, which the server stores as the start of RotationAttempt::failure_reason.
Variants§
NoActiveSession
No active session at the start of execution (terminal session state).
CredentialsUnresolved
Target-system credentials could not be resolved from the configured resolver.
InvalidPolicy
The password policy received from the server is invalid or cannot be satisfied.
UnsupportedKind
The target-system kind is not supported by this connector build.
TargetRejected
The target system rejected the rotation (e.g. wrong account, policy violation at the target).
TargetUnreachable
The target system could not be reached (network or connectivity error).
VerificationFailed
Verification of the rotated credential failed after the rotation step.
ScriptFailed
A custom script exited with a failure code.
ScriptTimeout
A custom script exceeded its configured timeout.
CipherWriteRejected
The server rejected the cipher write (e.g. revision-date conflict).
CipherEncryptFailed
Encrypting the updated cipher data failed.
SealedDataRejected
Sealed-data verification failed; see WorkSnapshot::verify.
Internal
An unexpected internal error occurred.
Unknown
A code this SDK version does not recognize.
Implementations§
Source§impl RotationFailureCode
impl RotationFailureCode
Sourcepub fn as_token(self) -> Result<&'static str, RotationError>
pub fn as_token(self) -> Result<&'static str, RotationError>
The wire token the server stores for this code, at most 100 characters. Refuses
Unknown, which has no token to send.
Sourcepub fn from_token(token: &str) -> Self
pub fn from_token(token: &str) -> Self
Parses a wire token; an unrecognized token, including "unknown", is
Unknown.
Trait Implementations§
Source§impl Clone for RotationFailureCode
impl Clone for RotationFailureCode
Source§fn clone(&self) -> RotationFailureCode
fn clone(&self) -> RotationFailureCode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for RotationFailureCode
Source§impl Debug for RotationFailureCode
impl Debug for RotationFailureCode
Source§impl<'de> Deserialize<'de> for RotationFailureCode
impl<'de> Deserialize<'de> for RotationFailureCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for RotationFailureCode
Source§impl From<RotationFailureCode> for JsValuewhere
RotationFailureCode: Serialize,
impl From<RotationFailureCode> for JsValuewhere
RotationFailureCode: Serialize,
Source§fn from(value: RotationFailureCode) -> Self
fn from(value: RotationFailureCode) -> Self
Source§impl FromWasmAbi for RotationFailureCodewhere
Self: DeserializeOwned,
impl FromWasmAbi for RotationFailureCodewhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for &RotationFailureCodewhere
RotationFailureCode: Serialize,
impl IntoWasmAbi for &RotationFailureCodewhere
RotationFailureCode: Serialize,
Source§impl IntoWasmAbi for RotationFailureCodewhere
RotationFailureCode: Serialize,
impl IntoWasmAbi for RotationFailureCodewhere
RotationFailureCode: Serialize,
Source§impl OptionFromWasmAbi for RotationFailureCodewhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for RotationFailureCodewhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for RotationFailureCodewhere
RotationFailureCode: Serialize,
impl OptionIntoWasmAbi for RotationFailureCodewhere
RotationFailureCode: Serialize,
Source§impl PartialEq for RotationFailureCode
impl PartialEq for RotationFailureCode
Source§impl RefFromWasmAbi for RotationFailureCodewhere
Self: DeserializeOwned,
impl RefFromWasmAbi for RotationFailureCodewhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
Self are recovered from.Source§type Anchor = SelfOwner<RotationFailureCode>
type Anchor = SelfOwner<RotationFailureCode>
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl Serialize for RotationFailureCode
impl Serialize for RotationFailureCode
impl StructuralPartialEq for RotationFailureCode
Source§impl Tsify for RotationFailureCode
impl Tsify for RotationFailureCode
const DECL: &'static str = "/**\n * Why a rotation attempt failed, as the connector reports it. On the wire it is a snake_case\n * token, which the server stores as the start of [`RotationAttempt::failure_reason`].\n */\nexport type RotationFailureCode = \"no_active_session\" | \"credentials_unresolved\" | \"invalid_policy\" | \"unsupported_kind\" | \"target_rejected\" | \"target_unreachable\" | \"verification_failed\" | \"script_failed\" | \"script_timeout\" | \"cipher_write_rejected\" | \"cipher_encrypt_failed\" | \"sealed_data_rejected\" | \"internal\" | \"unknown\";"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl VectorFromWasmAbi for RotationFailureCodewhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for RotationFailureCodewhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for RotationFailureCodewhere
RotationFailureCode: Serialize,
impl VectorIntoWasmAbi for RotationFailureCodewhere
RotationFailureCode: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for RotationFailureCode
impl WasmDescribe for RotationFailureCode
Auto Trait Implementations§
impl Freeze for RotationFailureCode
impl RefUnwindSafe for RotationFailureCode
impl Send for RotationFailureCode
impl Sync for RotationFailureCode
impl Unpin for RotationFailureCode
impl UnsafeUnpin for RotationFailureCode
impl UnwindSafe for RotationFailureCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§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 moreimpl<T> Persist for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.