Struct puffin::trace::TraceExecution
source · pub struct TraceExecution<PT: ProtocolTypes> {
prior_traces: Vec<TraceExecution<PT>>,
agents: Vec<AgentDescriptor<PT::PUTConfig>>,
number_of_steps: usize,
executed_until: usize,
steps: Vec<StepExecution<PT>>,
}
Expand description
Store the result of a trace execution to be printed in the cli or serialized for automated analysis
Fields§
§prior_traces: Vec<TraceExecution<PT>>
§agents: Vec<AgentDescriptor<PT::PUTConfig>>
§number_of_steps: usize
Total number of step in the trace
executed_until: usize
Number of steps executed before error
steps: Vec<StepExecution<PT>>
Execution result of each step
Implementations§
source§impl<PT: ProtocolTypes> TraceExecution<PT>
impl<PT: ProtocolTypes> TraceExecution<PT>
pub fn from<PB>(
trace: &Trace<PT>,
ctx: &mut TraceContext<PB>,
export_terms: bool,
export_knowledges: bool,
export_claims: bool,
) -> Selfwhere
PB: ProtocolBehavior<ProtocolTypes = PT>,
fn count_prior_traces(trace: &Trace<PT>) -> usize
pub fn print(&self, f: &mut Formatter<'_>, depth: usize) -> Result
Trait Implementations§
source§impl<PT> Serialize for TraceExecution<PT>where
PT: ProtocolTypes,
impl<PT> Serialize for TraceExecution<PT>where
PT: ProtocolTypes,
Auto Trait Implementations§
impl<PT> Freeze for TraceExecution<PT>
impl<PT> !RefUnwindSafe for TraceExecution<PT>
impl<PT> !Send for TraceExecution<PT>
impl<PT> !Sync for TraceExecution<PT>
impl<PT> Unpin for TraceExecution<PT>
impl<PT> !UnwindSafe for TraceExecution<PT>
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
§impl<Tail, T> Prepend<T> for Tail
impl<Tail, T> Prepend<T> for Tail
§type PreprendResult = Tail
type PreprendResult = Tail
The Resulting [
TupleList
], of an [Prepend::prepend()
] call,
including the prepended entry.