#[non_exhaustive]pub enum CheckpointGranularity {
Off,
PerNode,
}Expand description
How often the compiled graph writes a checkpoint when a
Checkpointer is attached.
PerNode (the default) writes after every successful node
completion — durable enough that a crash mid-graph loses at most
one node’s work. Off skips checkpointer writes entirely; the
graph still runs end-to-end but cannot resume after a crash.
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.
Off
Skip checkpointer writes. Useful for ephemeral graphs or when the checkpointer is attached purely to satisfy a downstream API contract.
PerNode
Write a checkpoint after each node completes successfully. This is the default and matches the F8 mitigation.
Trait Implementations§
Source§impl Clone for CheckpointGranularity
impl Clone for CheckpointGranularity
Source§fn clone(&self) -> CheckpointGranularity
fn clone(&self) -> CheckpointGranularity
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 CheckpointGranularity
impl Debug for CheckpointGranularity
Source§impl Default for CheckpointGranularity
impl Default for CheckpointGranularity
Source§fn default() -> CheckpointGranularity
fn default() -> CheckpointGranularity
Returns the “default value” for a type. Read more
Source§impl Hash for CheckpointGranularity
impl Hash for CheckpointGranularity
Source§impl PartialEq for CheckpointGranularity
impl PartialEq for CheckpointGranularity
Source§fn eq(&self, other: &CheckpointGranularity) -> bool
fn eq(&self, other: &CheckpointGranularity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CheckpointGranularity
impl Eq for CheckpointGranularity
impl StructuralPartialEq for CheckpointGranularity
Auto Trait Implementations§
impl Freeze for CheckpointGranularity
impl RefUnwindSafe for CheckpointGranularity
impl Send for CheckpointGranularity
impl Sync for CheckpointGranularity
impl Unpin for CheckpointGranularity
impl UnsafeUnpin for CheckpointGranularity
impl UnwindSafe for CheckpointGranularity
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.