Skip to main content

FlowAttemptShape

Trait FlowAttemptShape 

Source
pub trait FlowAttemptShape {
    // Required methods
    fn attempt_index(&self) -> u32;
    fn status(&self) -> &str;
    fn error_class(&self) -> Option<&str>;
    fn ips_generated(&self) -> Option<&str>;
    fn wall_ms(&self) -> u64;
}
Expand description

v1.0.15 §6 — abstraction so callers pass either [smix_runner_wire::FlowAttempt] or a local struct with the same shape without a cross-crate dep on smix-runner-wire from smix-simctl.

Required Methods§

Source

fn attempt_index(&self) -> u32

Zero-based retry index.

Source

fn status(&self) -> &str

“ok” / “timeout” / “error” / “crashed”.

Source

fn error_class(&self) -> Option<&str>

Error class code, if any.

Source

fn ips_generated(&self) -> Option<&str>

.ips filename attributable to this attempt, if any.

Source

fn wall_ms(&self) -> u64

Wall-clock milliseconds.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§