Trait MismatchHandler

Source
pub trait MismatchHandler<T> {
    // Required method
    fn on_mismatch(self, mismatch: Mismatch<T>) -> T;
}
Expand description

A MismatchHandler resolves differences between the control and experimental values. If the two values differ, then on_mismatch is called. This function is used to determine which value should be passed back to the aplication, and possibly do some extra logging or recording if desired.

Required Methods§

Source

fn on_mismatch(self, mismatch: Mismatch<T>) -> T

Implementors§

Source§

impl<F, T> MismatchHandler<T> for FnTrait<F>
where F: FnOnce(Mismatch<T>) -> T,

Source§

impl<T> MismatchHandler<T> for AlwaysControl