#[repr(C)]pub struct AssertionSlot {
pub msg_hash: u32,
pub kind: u8,
pub must_hit: u8,
pub maximize: u8,
pub split_triggered: u8,
pub pass_count: u64,
pub fail_count: u64,
pub watermark: i64,
pub split_watermark: i64,
pub frontier: u8,
pub _pad: [u8; 7],
pub msg: [u8; 64],
}Expand description
A single assertion tracking slot in shared memory.
All fields are accessed via raw pointer arithmetic on MAP_SHARED memory.
Fields§
§msg_hash: u32FNV-1a hash of the assertion message (u32).
kind: u8The kind of assertion (AssertKind as u8).
must_hit: u8Whether this assertion must be hit (1) or not (0).
maximize: u8Whether to maximize (1) or minimize (0) the watermark value.
split_triggered: u8Whether a fork has been triggered for this assertion (0 = no, 1 = yes).
pass_count: u64Total number of times this assertion passed.
fail_count: u64Total number of times this assertion failed.
watermark: i64Numeric watermark: best value observed (for guidance assertions).
split_watermark: i64Watermark value at last fork (for detecting improvement).
frontier: u8Frontier: number of simultaneously true bools (for BooleanSometimesAll).
_pad: [u8; 7]Padding for alignment.
msg: [u8; 64]Assertion message string (null-terminated).
Implementations§
Auto Trait Implementations§
impl Freeze for AssertionSlot
impl RefUnwindSafe for AssertionSlot
impl Send for AssertionSlot
impl Sync for AssertionSlot
impl Unpin for AssertionSlot
impl UnsafeUnpin for AssertionSlot
impl UnwindSafe for AssertionSlot
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