pub struct StepTrace {
pub initial: StateSnapshot,
pub snapshots: Vec<StateSnapshot>,
pub failed_expectations: Vec<String>,
/* private fields */
}Expand description
Trace of step-by-step execution.
Fields§
§initial: StateSnapshotInitial state before any keys.
snapshots: Vec<StateSnapshot>State snapshots after each key.
failed_expectations: Vec<String>Failed expectations (if any).
Implementations§
Source§impl StepTrace
impl StepTrace
Sourcepub fn log_path(&self) -> Option<&Path>
pub fn log_path(&self) -> Option<&Path>
Get the path to the server log file for debugging.
Returns None if log capture is not enabled.
Sourcepub fn print_trace(&self)
pub fn print_trace(&self)
Print the full trace to stderr (for debugging).
Sourcepub fn print_compact(&self)
pub fn print_compact(&self)
Print compact single-line trace.
Sourcepub fn final_state(&self) -> &StateSnapshot
pub fn final_state(&self) -> &StateSnapshot
Get final state (last snapshot).
Sourcepub fn state_after(&self, step: usize) -> Option<&StateSnapshot>
pub fn state_after(&self, step: usize) -> Option<&StateSnapshot>
Get state after step N (0-indexed).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StepTrace
impl !RefUnwindSafe for StepTrace
impl Send for StepTrace
impl Sync for StepTrace
impl Unpin for StepTrace
impl UnsafeUnpin for StepTrace
impl !UnwindSafe for StepTrace
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request