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 new() -> ConcurrentChainConfig
pub fn new() -> ConcurrentChainConfig
Create a new config.
Sourcepub fn with_max_parallel(self, n: usize) -> ConcurrentChainConfig
pub fn with_max_parallel(self, n: usize) -> ConcurrentChainConfig
Set max parallel steps.
Sourcepub fn with_stop_on_failure(self, stop: bool) -> ConcurrentChainConfig
pub fn with_stop_on_failure(self, stop: bool) -> ConcurrentChainConfig
Set whether to stop on failure.
Sourcepub fn with_step_timeout(self, ms: u64) -> ConcurrentChainConfig
pub fn with_step_timeout(self, ms: u64) -> ConcurrentChainConfig
Set step timeout.
Sourcepub fn with_parallel(self, enable: bool) -> ConcurrentChainConfig
pub fn with_parallel(self, enable: bool) -> ConcurrentChainConfig
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 (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 ConcurrentChainConfig
impl Debug for ConcurrentChainConfig
Source§impl Default for ConcurrentChainConfig
impl Default for ConcurrentChainConfig
Source§fn default() -> ConcurrentChainConfig
fn default() -> ConcurrentChainConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConcurrentChainConfig
impl<'de> Deserialize<'de> for ConcurrentChainConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConcurrentChainConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConcurrentChainConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ConcurrentChainConfig
impl Serialize for ConcurrentChainConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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 UnsafeUnpin 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