pub struct FailFast;Expand description
Fail-fast policy: cancel siblings on first error.
This is the default policy for most use cases.
Trait Implementations§
Source§impl Policy for FailFast
impl Policy for FailFast
Source§fn on_child_outcome<T>(
&self,
_child: TaskId,
outcome: &Outcome<T, Self::Error>,
) -> PolicyAction
fn on_child_outcome<T>( &self, _child: TaskId, outcome: &Outcome<T, Self::Error>, ) -> PolicyAction
Called when a child task completes. Read more
Source§fn aggregate_outcomes<T>(
&self,
outcomes: &[Outcome<T, Self::Error>],
) -> AggregateDecision<Self::Error>
fn aggregate_outcomes<T>( &self, outcomes: &[Outcome<T, Self::Error>], ) -> AggregateDecision<Self::Error>
Aggregates all child outcomes into a decision.
impl Copy for FailFast
Auto Trait Implementations§
impl Freeze for FailFast
impl RefUnwindSafe for FailFast
impl Send for FailFast
impl Sync for FailFast
impl Unpin for FailFast
impl UnwindSafe for FailFast
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).