pub struct Gate {
pub pct: f64,
pub min_delta: u64,
pub enabled: bool,
}Expand description
When an instruction count has risen far enough to fail tak compare.
Policy, not measurement, so it is never recorded: it comes from the settings
and tak.toml of whoever runs the comparison. Stored with the records, a
threshold change would read as a change in what was measured, and two
writers with different gates would emit byte-different lines for the same
measurement, which cat_sort_uniq cannot collapse.
Fields§
§pct: f64Percentage of the base a count may rise by.
min_delta: u64Instructions a count may rise by, whatever the percentage says.
enabled: boolFalse for a report-only series: still held to its threshold and flagged when it crosses it, but never a reason to fail.
Implementations§
Trait Implementations§
impl Copy for Gate
impl StructuralPartialEq for Gate
Auto Trait Implementations§
impl Freeze for Gate
impl RefUnwindSafe for Gate
impl Send for Gate
impl Sync for Gate
impl Unpin for Gate
impl UnsafeUnpin for Gate
impl UnwindSafe for Gate
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