pub struct SimReport {
pub suite: String,
pub seed: u64,
pub summary: SimSummary,
pub results: Vec<AttackResult>,
}Fields§
§suite: String§seed: u64§summary: SimSummary§results: Vec<AttackResult>Implementations§
Source§impl SimReport
impl SimReport
pub fn new(suite: &str, seed: u64) -> Self
pub fn add_attack( &mut self, name: &str, result: Result<(ErrorClass, ErrorCode), Error>, duration_ms: u64, )
Sourcepub fn add_result(&mut self, result: AttackResult)
pub fn add_result(&mut self, result: AttackResult)
Add a pre-built AttackResult directly.
pub fn add_check(&mut self, name: &str, result: Result<()>, duration_ms: u64)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SimReport
impl RefUnwindSafe for SimReport
impl Send for SimReport
impl Sync for SimReport
impl Unpin for SimReport
impl UnwindSafe for SimReport
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