pub enum Outcome {
Sampled,
Violation {
kind: &'static str,
name: Option<String>,
code: u32,
trace: usize,
},
Error {
code: u32,
message: String,
},
Unsupported(String),
Limit(String),
Cancelled,
Internal(String),
}Expand description
The result of a simulation; a sample never proves absence of violations.
Variants§
Sampled
Requested sampling completed without finding an error.
Violation
An invariant, action property or deadlock was found.
Fields
Error
An assumption or evaluated predicate failed, with a measured class.
Unsupported(String)
An unimplemented behavior; no simulation conclusion.
Limit(String)
A configured resource bound was reached; no conclusion.
Cancelled
The caller’s cancellation checkpoint stopped execution; no conclusion. The caller must separately establish its actual resource/stop reason.
Internal(String)
An internal error; no conclusion.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Outcome
impl Freeze for Outcome
impl Move for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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