pub struct ConcurrentChainResult {
pub success: bool,
pub steps_executed: usize,
pub max_parallel: usize,
pub duration_ms: u64,
pub step_results: HashMap<String, StepResult>,
pub first_error: Option<String>,
}Expand description
Result of executing a concurrent chain.
Fields§
§success: boolWhether the entire chain succeeded.
steps_executed: usizeNumber of steps executed (including failed).
max_parallel: usizeMaximum number of steps running in parallel at any point.
duration_ms: u64Total duration in milliseconds.
step_results: HashMap<String, StepResult>Results for each step, keyed by step ID.
first_error: Option<String>First error encountered, if any.
Implementations§
Source§impl ConcurrentChainResult
impl ConcurrentChainResult
Sourcepub fn new() -> ConcurrentChainResult
pub fn new() -> ConcurrentChainResult
Create a new result.
Sourcepub fn record(&mut self, step_id: String, result: StepResult)
pub fn record(&mut self, step_id: String, result: StepResult)
Record a step result.
Trait Implementations§
Source§impl Clone for ConcurrentChainResult
impl Clone for ConcurrentChainResult
Source§fn clone(&self) -> ConcurrentChainResult
fn clone(&self) -> ConcurrentChainResult
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 ConcurrentChainResult
impl Debug for ConcurrentChainResult
Source§impl Default for ConcurrentChainResult
impl Default for ConcurrentChainResult
Source§fn default() -> ConcurrentChainResult
fn default() -> ConcurrentChainResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConcurrentChainResult
impl<'de> Deserialize<'de> for ConcurrentChainResult
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConcurrentChainResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConcurrentChainResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ConcurrentChainResult
impl Serialize for ConcurrentChainResult
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 Forget for ConcurrentChainResult
impl Freeze for ConcurrentChainResultwhere
*const u8 is !null: Freeze,
PhantomData<(String, StepResult)>: Freeze,
PhantomData<u8>: Freeze,
impl Move for ConcurrentChainResult
impl RefUnwindSafe for ConcurrentChainResult
impl Send for ConcurrentChainResult
impl Sync for ConcurrentChainResult
impl Unpin for ConcurrentChainResult
impl UnsafeUnpin for ConcurrentChainResultwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<(String, StepResult)>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for ConcurrentChainResult
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