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 FromWasm for RotationFailureCode
Available on crate feature wasm only.
impl FromWasm for RotationFailureCode
wasm only.Source§impl PartialEq for RotationFailureCode
impl PartialEq for RotationFailureCode
Source§impl Serialize for RotationFailureCode
impl Serialize for RotationFailureCode
impl StructuralPartialEq for RotationFailureCode
Source§impl ToWasm for RotationFailureCode
Available on crate feature wasm only.
impl ToWasm for RotationFailureCode
wasm only.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
Source§type JsType = JsType
type JsType = JsType
#[wasm_bindgen] extern "C" { .. }.
[Ts<T>] is #[repr(transparent)] over this and passes it across the
ABI as a plain JS handle, which any other representation would break.fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
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<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