#[non_exhaustive]pub enum RestartPolicy {
Restartable,
NotRestartable,
}Expand description
Whether a job or logical step may be entered by a later execution attempt.
This M7 execution-definition policy is distinct from
RestartabilityDeclaration, which describes whether component state can be
reconstructed. The default preserves every pre-M7 definition’s restart
behavior and manifest identity.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Restartable
Later failed/stopped execution attempts may re-enter this definition.
NotRestartable
A later execution attempt must fail closed before re-entering this definition.
Implementations§
Source§impl RestartPolicy
impl RestartPolicy
Sourcepub const fn is_restartable(self) -> bool
pub const fn is_restartable(self) -> bool
Returns whether a later execution attempt may re-enter this definition.
Trait Implementations§
Source§impl Clone for RestartPolicy
impl Clone for RestartPolicy
impl Copy for RestartPolicy
Source§impl Debug for RestartPolicy
impl Debug for RestartPolicy
Source§impl Default for RestartPolicy
impl Default for RestartPolicy
impl Eq for RestartPolicy
Source§impl Hash for RestartPolicy
impl Hash for RestartPolicy
Source§impl Ord for RestartPolicy
impl Ord for RestartPolicy
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RestartPolicy
impl PartialEq for RestartPolicy
Source§impl PartialOrd for RestartPolicy
impl PartialOrd for RestartPolicy
impl StructuralPartialEq for RestartPolicy
Auto Trait Implementations§
impl Forget for RestartPolicy
impl Freeze for RestartPolicy
impl Move for RestartPolicy
impl RefUnwindSafe for RestartPolicy
impl Send for RestartPolicy
impl Sync for RestartPolicy
impl Unpin for RestartPolicy
impl UnsafeUnpin for RestartPolicy
impl UnwindSafe for RestartPolicy
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