pub enum RecoveryClassification {
RetryableSafeStep,
ReconcileRequired,
RepairRequired,
UserActionRequired,
HostConfigurationRequired,
Irrecoverable,
}Expand description
Enumerates the finite recovery classification cases. Serialized names are part of the SDK contract; update fixtures when variants change.
Variants§
RetryableSafeStep
Use this variant when the contract needs to represent retryable safe step; selecting it has no side effect by itself.
ReconcileRequired
Use this variant when the contract needs to represent reconcile required; selecting it has no side effect by itself.
RepairRequired
Use this variant when the contract needs to represent repair required; selecting it has no side effect by itself.
UserActionRequired
Use this variant when the contract needs to represent user action required; selecting it has no side effect by itself.
HostConfigurationRequired
Use this variant when the contract needs to represent host configuration required; selecting it has no side effect by itself.
Irrecoverable
Use this variant when the contract needs to represent irrecoverable; selecting it has no side effect by itself.
Implementations§
Source§impl RecoveryClassification
impl RecoveryClassification
Sourcepub fn retry_classification(self) -> RetryClassification
pub fn retry_classification(self) -> RetryClassification
Computes or returns retry classification for the application::recovery contract without external I/O or side effects.
Sourcepub fn requires_repair_plan(self) -> bool
pub fn requires_repair_plan(self) -> bool
Returns whether requires repair plan applies for this contract. This derives recovery or repair data from the supplied failure state and does not perform the repair by itself.
Trait Implementations§
Source§impl Clone for RecoveryClassification
impl Clone for RecoveryClassification
Source§fn clone(&self) -> RecoveryClassification
fn clone(&self) -> RecoveryClassification
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 RecoveryClassification
Source§impl Debug for RecoveryClassification
impl Debug for RecoveryClassification
Source§impl<'de> Deserialize<'de> for RecoveryClassification
impl<'de> Deserialize<'de> for RecoveryClassification
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 RecoveryClassification
Source§impl Hash for RecoveryClassification
impl Hash for RecoveryClassification
Source§impl PartialEq for RecoveryClassification
impl PartialEq for RecoveryClassification
Source§fn eq(&self, other: &RecoveryClassification) -> bool
fn eq(&self, other: &RecoveryClassification) -> bool
self and other values to be equal, and is used by ==.