pub struct ExecutionTrace {
pub steps: Vec<ExecutionStep>,
}Expand description
Complete execution trace containing all steps
Fields§
§steps: Vec<ExecutionStep>All execution steps in order
Implementations§
Source§impl ExecutionTrace
impl ExecutionTrace
Sourcepub fn add_step(&mut self, step: ExecutionStep)
pub fn add_step(&mut self, step: ExecutionStep)
Add a step to the trace
Sourcepub fn final_message(&self) -> Option<&Message>
pub fn final_message(&self) -> Option<&Message>
Get the final message (from the last executed step)
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Check if execution was successful (no errors in final message)
Sourcepub fn executed_count(&self) -> usize
pub fn executed_count(&self) -> usize
Get number of executed steps
Sourcepub fn skipped_count(&self) -> usize
pub fn skipped_count(&self) -> usize
Get number of skipped steps
Trait Implementations§
Source§impl Clone for ExecutionTrace
impl Clone for ExecutionTrace
Source§fn clone(&self) -> ExecutionTrace
fn clone(&self) -> ExecutionTrace
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 ExecutionTrace
impl Debug for ExecutionTrace
Source§impl Default for ExecutionTrace
impl Default for ExecutionTrace
Source§impl<'de> Deserialize<'de> for ExecutionTrace
impl<'de> Deserialize<'de> for ExecutionTrace
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 ExecutionTrace
impl RefUnwindSafe for ExecutionTrace
impl Send for ExecutionTrace
impl Sync for ExecutionTrace
impl Unpin for ExecutionTrace
impl UnwindSafe for ExecutionTrace
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