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§
Sourcefn attempt_index(&self) -> u32
fn attempt_index(&self) -> u32
Zero-based retry index.
Sourcefn error_class(&self) -> Option<&str>
fn error_class(&self) -> Option<&str>
Error class code, if any.
Sourcefn ips_generated(&self) -> Option<&str>
fn ips_generated(&self) -> Option<&str>
.ips filename attributable to this attempt, if any.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".