pub enum CheckpointFrequency {
EveryNNodes(usize),
TimeInterval(u64),
BeforeNodeTypes(Vec<String>),
Manual,
Always,
}Expand description
Checkpoint frequency strategies
Variants§
EveryNNodes(usize)
Checkpoint after every N nodes complete
TimeInterval(u64)
Checkpoint at specific time intervals (in seconds)
BeforeNodeTypes(Vec<String>)
Checkpoint before specific node types (e.g., before expensive LLM calls)
Manual
Manual checkpointing only (no automatic checkpoints)
Always
Checkpoint at every node completion (maximum safety, higher overhead)
Trait Implementations§
Source§impl Clone for CheckpointFrequency
impl Clone for CheckpointFrequency
Source§fn clone(&self) -> CheckpointFrequency
fn clone(&self) -> CheckpointFrequency
Returns a duplicate of the value. Read more
1.0.0 · 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 CheckpointFrequency
impl Debug for CheckpointFrequency
Source§impl<'de> Deserialize<'de> for CheckpointFrequency
impl<'de> Deserialize<'de> for CheckpointFrequency
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 CheckpointFrequency
impl PartialEq for CheckpointFrequency
Source§impl Serialize for CheckpointFrequency
impl Serialize for CheckpointFrequency
impl Eq for CheckpointFrequency
impl StructuralPartialEq for CheckpointFrequency
Auto Trait Implementations§
impl Freeze for CheckpointFrequency
impl RefUnwindSafe for CheckpointFrequency
impl Send for CheckpointFrequency
impl Sync for CheckpointFrequency
impl Unpin for CheckpointFrequency
impl UnwindSafe for CheckpointFrequency
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§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.