pub struct PerformanceGate { /* private fields */ }Expand description
Performance gate validator
Implementations§
Source§impl PerformanceGate
impl PerformanceGate
Sourcepub fn new(baseline: OperationBaseline) -> Self
pub fn new(baseline: OperationBaseline) -> Self
Create a new performance gate
Sourcepub fn validate<F>(&self, op: F) -> boolwhere
F: FnMut(),
pub fn validate<F>(&self, op: F) -> boolwhere
F: FnMut(),
Validate that operation meets performance baseline
Returns true if performance is within acceptable regression threshold
Sourcepub fn validate_detailed<F>(&self, op: F) -> PerformanceMeasurementwhere
F: FnMut(),
pub fn validate_detailed<F>(&self, op: F) -> PerformanceMeasurementwhere
F: FnMut(),
Validate and return detailed measurement
Auto Trait Implementations§
impl Freeze for PerformanceGate
impl RefUnwindSafe for PerformanceGate
impl Send for PerformanceGate
impl Sync for PerformanceGate
impl Unpin for PerformanceGate
impl UnsafeUnpin for PerformanceGate
impl UnwindSafe for PerformanceGate
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more