pub enum RecoveryDenied {
NotRetryable,
ChildUnaccountedFor,
PolicyForbids,
NeedsAHuman,
OutOfAttempts {
max_attempts: u32,
},
}Expand description
Why interrupted work was not restarted.
Variants§
NotRetryable
The interruption was not the kind you restart through.
ChildUnaccountedFor
The previous run’s process has not been confirmed gone.
Not a failure so much as an unanswered question. Starting a new run beside a process that is still going duplicates its work, so the Tower has to look before it restarts.
PolicyForbids
The agent is configured never to restart.
NeedsAHuman
The agent is configured to wait for a person.
OutOfAttempts
The work has already been restarted as often as it is allowed.
Trait Implementations§
Source§impl Clone for RecoveryDenied
impl Clone for RecoveryDenied
impl Copy for RecoveryDenied
Source§impl Debug for RecoveryDenied
impl Debug for RecoveryDenied
Source§impl Display for RecoveryDenied
impl Display for RecoveryDenied
impl Eq for RecoveryDenied
Source§impl Error for RecoveryDenied
impl Error for RecoveryDenied
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for RecoveryDenied
impl PartialEq for RecoveryDenied
impl StructuralPartialEq for RecoveryDenied
Auto Trait Implementations§
impl Freeze for RecoveryDenied
impl RefUnwindSafe for RecoveryDenied
impl Send for RecoveryDenied
impl Sync for RecoveryDenied
impl Unpin for RecoveryDenied
impl UnsafeUnpin for RecoveryDenied
impl UnwindSafe for RecoveryDenied
Blanket Implementations§
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
Mutably borrows from an owned value. Read more