#[non_exhaustive]pub enum InterruptionPhase {
Before,
After,
}Expand description
Phase at which a graph-scheduled pause fires — before the marked
node runs (Before) or after it returns Ok (After).
non_exhaustive matches the workspace-wide pub-enum hygiene gate
(cargo xtask surface-hygiene). The Before / After partition
of node-boundary timing is conceptually closed, so operator match
sites typically use a _ => unreachable!("…") fall-through arm
— the marker exists as future-proofing against a deliberate SDK
addition (e.g. wrapper phases for fan-out joins) rather than a
signal of an open variant set.
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.
Before
Pause before the marked node executes; resume re-runs the node from saved pre-state.
After
Pause after the marked node returns Ok; resume continues forward, skipping a re-run of the just-completed node.
Trait Implementations§
Source§impl Clone for InterruptionPhase
impl Clone for InterruptionPhase
Source§fn clone(&self) -> InterruptionPhase
fn clone(&self) -> InterruptionPhase
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 moreSource§impl Debug for InterruptionPhase
impl Debug for InterruptionPhase
Source§impl<'de> Deserialize<'de> for InterruptionPhase
impl<'de> Deserialize<'de> for InterruptionPhase
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for InterruptionPhase
impl PartialEq for InterruptionPhase
Source§fn eq(&self, other: &InterruptionPhase) -> bool
fn eq(&self, other: &InterruptionPhase) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InterruptionPhase
impl Serialize for InterruptionPhase
impl Copy for InterruptionPhase
impl Eq for InterruptionPhase
impl StructuralPartialEq for InterruptionPhase
Auto Trait Implementations§
impl Freeze for InterruptionPhase
impl RefUnwindSafe for InterruptionPhase
impl Send for InterruptionPhase
impl Sync for InterruptionPhase
impl Unpin for InterruptionPhase
impl UnsafeUnpin for InterruptionPhase
impl UnwindSafe for InterruptionPhase
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<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
Compare self to
key and return true if they are equal.