pub struct InFlightCancellation {
pub worker_requests: Vec<CancelRequest>,
pub declared_attempts: Vec<AttemptKey>,
}Expand description
Everything this node did to stop one run’s in-flight work.
Two lists because there are two execution paths and they are stopped by different means — asking a worker over its stream, and signalling a process this server owns. Kept apart rather than merged into one vocabulary: a worker ask is a question whose answer this node never sees, and a declared body’s stop is one the attempt itself witnesses, and calling both “cancel requests” would lose that difference exactly where an operator needs it.
Fields§
§worker_requests: Vec<CancelRequest>One record per activity a WORKER was tracked as holding, including the ones that could not be asked.
declared_attempts: Vec<AttemptKey>The declared bodies THIS SERVER was executing, now signalled. Each named attempt has had its cancellation raised; the attempt reports back only once its process group has been proven gone.
Implementations§
Source§impl InFlightCancellation
impl InFlightCancellation
Sourcepub fn stopped_nothing(&self) -> bool
pub fn stopped_nothing(&self) -> bool
Whether this node stopped nothing at all — the common case for a run with no activity in flight, and not a failure.
Trait Implementations§
Source§impl Clone for InFlightCancellation
impl Clone for InFlightCancellation
Source§fn clone(&self) -> InFlightCancellation
fn clone(&self) -> InFlightCancellation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InFlightCancellation
impl Debug for InFlightCancellation
Source§impl Default for InFlightCancellation
impl Default for InFlightCancellation
Source§fn default() -> InFlightCancellation
fn default() -> InFlightCancellation
impl Eq for InFlightCancellation
Source§impl PartialEq for InFlightCancellation
impl PartialEq for InFlightCancellation
impl StructuralPartialEq for InFlightCancellation
Auto Trait Implementations§
impl Freeze for InFlightCancellation
impl RefUnwindSafe for InFlightCancellation
impl Send for InFlightCancellation
impl Sync for InFlightCancellation
impl Unpin for InFlightCancellation
impl UnsafeUnpin for InFlightCancellation
impl UnwindSafe for InFlightCancellation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request