#[non_exhaustive]pub enum PhaseFailurePolicy {
FailFast,
FinishActive,
}Expand description
Scheduling behavior after the first workload failure in a phase.
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.
FailFast
Stop new work and cooperatively cancel active workloads.
FinishActive
Stop new work but allow already active workloads to finish.
Implementations§
Trait Implementations§
Source§impl Clone for PhaseFailurePolicy
impl Clone for PhaseFailurePolicy
Source§fn clone(&self) -> PhaseFailurePolicy
fn clone(&self) -> PhaseFailurePolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PhaseFailurePolicy
Source§impl Debug for PhaseFailurePolicy
impl Debug for PhaseFailurePolicy
Source§impl Default for PhaseFailurePolicy
impl Default for PhaseFailurePolicy
Source§fn default() -> PhaseFailurePolicy
fn default() -> PhaseFailurePolicy
Returns the “default value” for a type. Read more
impl Eq for PhaseFailurePolicy
Source§impl PartialEq for PhaseFailurePolicy
impl PartialEq for PhaseFailurePolicy
impl StructuralPartialEq for PhaseFailurePolicy
Auto Trait Implementations§
impl Freeze for PhaseFailurePolicy
impl RefUnwindSafe for PhaseFailurePolicy
impl Send for PhaseFailurePolicy
impl Sync for PhaseFailurePolicy
impl Unpin for PhaseFailurePolicy
impl UnsafeUnpin for PhaseFailurePolicy
impl UnwindSafe for PhaseFailurePolicy
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