pub struct GraphConfig {
pub max_steps: u32,
pub debug: bool,
pub checkpoint_enabled: bool,
pub checkpoint_interval: u32,
pub timeout_ms: u64,
pub max_parallelism: usize,
pub custom: HashMap<String, Value>,
}Expand description
Graph execution configuration
Fields§
§max_steps: u32Maximum recursion depth
debug: boolEnable debug mode
checkpoint_enabled: boolEnable checkpointing
checkpoint_interval: u32Checkpoint interval (in steps)
timeout_ms: u64Timeout in milliseconds (0 = no timeout)
max_parallelism: usizeMaximum parallel branches
custom: HashMap<String, Value>Custom configuration values
Implementations§
Source§impl GraphConfig
impl GraphConfig
Sourcepub fn with_max_steps(self, max_steps: u32) -> Self
pub fn with_max_steps(self, max_steps: u32) -> Self
Set maximum recursion depth
Sourcepub fn with_debug(self, debug: bool) -> Self
pub fn with_debug(self, debug: bool) -> Self
Enable debug mode
Sourcepub fn with_checkpoints(self, enabled: bool, interval: u32) -> Self
pub fn with_checkpoints(self, enabled: bool, interval: u32) -> Self
Enable checkpointing
Sourcepub fn with_timeout(self, timeout_ms: u64) -> Self
pub fn with_timeout(self, timeout_ms: u64) -> Self
Set timeout
Sourcepub fn with_max_parallelism(self, max: usize) -> Self
pub fn with_max_parallelism(self, max: usize) -> Self
Set maximum parallelism
Sourcepub fn with_custom(self, key: impl Into<String>, value: Value) -> Self
pub fn with_custom(self, key: impl Into<String>, value: Value) -> Self
Add a custom config value
Sourcepub fn remaining_steps(&self) -> RemainingSteps
pub fn remaining_steps(&self) -> RemainingSteps
Create RemainingSteps from this config
Trait Implementations§
Source§impl Clone for GraphConfig
impl Clone for GraphConfig
Source§fn clone(&self) -> GraphConfig
fn clone(&self) -> GraphConfig
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 GraphConfig
impl Debug for GraphConfig
Source§impl Default for GraphConfig
impl Default for GraphConfig
Source§impl<'de> Deserialize<'de> for GraphConfig
impl<'de> Deserialize<'de> for GraphConfig
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
Auto Trait Implementations§
impl Freeze for GraphConfig
impl RefUnwindSafe for GraphConfig
impl Send for GraphConfig
impl Sync for GraphConfig
impl Unpin for GraphConfig
impl UnsafeUnpin for GraphConfig
impl UnwindSafe for GraphConfig
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