pub struct PhaseNode {
pub name: String,
pub depth: usize,
pub start_ms: f64,
pub end_ms: Option<f64>,
pub assertions: Vec<AssertionRecord>,
pub children: Vec<Self>,
}Expand description
A hierarchical phase node in the test execution tree.
Fields§
§name: StringName of this phase/section/step.
depth: usizeDepth level (0 = top-level phase, 1 = section, 2 = step, …).
start_ms: f64Start time relative to harness creation.
end_ms: Option<f64>End time relative to harness creation (None if still open).
assertions: Vec<AssertionRecord>Assertions recorded within this phase.
children: Vec<Self>Child phases.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PhaseNode
impl RefUnwindSafe for PhaseNode
impl Send for PhaseNode
impl Sync for PhaseNode
impl Unpin for PhaseNode
impl UnsafeUnpin for PhaseNode
impl UnwindSafe for PhaseNode
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).