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§

source

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.

Implementors§