pub struct ConcurrentChainConfig {
pub max_parallel: usize,
pub stop_on_failure: bool,
pub step_timeout_ms: u64,
pub enable_parallel: bool,
}Expand description
Configuration for concurrent chain execution.
Fields§
§max_parallel: usizeMaximum number of steps to run in parallel.
stop_on_failure: boolWhether to stop on first failure.
step_timeout_ms: u64Timeout per step in milliseconds (0 = no timeout).
enable_parallel: boolWhether to run parallel-safe steps concurrently.
Implementations§
Source§impl ConcurrentChainConfig
impl ConcurrentChainConfig
Sourcepub fn with_max_parallel(self, n: usize) -> Self
pub fn with_max_parallel(self, n: usize) -> Self
Set max parallel steps.
Sourcepub fn with_stop_on_failure(self, stop: bool) -> Self
pub fn with_stop_on_failure(self, stop: bool) -> Self
Set whether to stop on failure.
Sourcepub fn with_step_timeout(self, ms: u64) -> Self
pub fn with_step_timeout(self, ms: u64) -> Self
Set step timeout.
Sourcepub fn with_parallel(self, enable: bool) -> Self
pub fn with_parallel(self, enable: bool) -> Self
Enable/disable parallel execution.
Trait Implementations§
Source§impl Clone for ConcurrentChainConfig
impl Clone for ConcurrentChainConfig
Source§fn clone(&self) -> ConcurrentChainConfig
fn clone(&self) -> ConcurrentChainConfig
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 ConcurrentChainConfig
impl Debug for ConcurrentChainConfig
Source§impl Default for ConcurrentChainConfig
impl Default for ConcurrentChainConfig
Source§impl<'de> Deserialize<'de> for ConcurrentChainConfig
impl<'de> Deserialize<'de> for ConcurrentChainConfig
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 ConcurrentChainConfig
impl RefUnwindSafe for ConcurrentChainConfig
impl Send for ConcurrentChainConfig
impl Sync for ConcurrentChainConfig
impl Unpin for ConcurrentChainConfig
impl UnwindSafe for ConcurrentChainConfig
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