Trait aws_smithy_runtime_api::client::retries::ClassifyRetry
source · pub trait ClassifyRetry: Send + Sync + Debug {
// Required method
fn classify_retry(
&self,
error: &OrchestratorError<Error>
) -> Option<RetryReason>;
}Expand description
Classifies what kind of retry is needed for a given Error.
Required Methods§
sourcefn classify_retry(
&self,
error: &OrchestratorError<Error>
) -> Option<RetryReason>
fn classify_retry( &self, error: &OrchestratorError<Error> ) -> Option<RetryReason>
Run this classifier against an error to determine if it should be retried. Returns
Some(RetryKind) if the error should be retried; Otherwise returns None.