Struct fuzzcheck::sensors_and_pools::AndSensor
source · [−]Expand description
A sensor that combines two sensors
The observations
from this sensor are the combination
of the observations of both S1
and S2
.
So AndSensor<S1, S2>
implements Sensor<Observations = (S1::Observations, S2::Observations)>
.
To create a pool that is compatible with an AndSensor
, use an AndPool
with the DifferentObservations
marker type.
Tuple Fields
0: S1
1: S2
Trait Implementations
sourceimpl<S1, S2> SaveToStatsFolder for AndSensor<S1, S2> where
S1: Sensor,
S2: Sensor,
impl<S1, S2> SaveToStatsFolder for AndSensor<S1, S2> where
S1: Sensor,
S2: Sensor,
sourceimpl<S1, S2> Sensor for AndSensor<S1, S2> where
S1: Sensor,
S2: Sensor,
impl<S1, S2> Sensor for AndSensor<S1, S2> where
S1: Sensor,
S2: Sensor,
type Observations = (<S1 as Sensor>::Observations, <S2 as Sensor>::Observations)
sourcefn start_recording(&mut self)
fn start_recording(&mut self)
Signal to the sensor that it should prepare to record observations
sourcefn stop_recording(&mut self)
fn stop_recording(&mut self)
Signal to the sensor that it should stop recording observations
sourcefn get_observations(&mut self) -> Self::Observations
fn get_observations(&mut self) -> Self::Observations
Access the sensor’s observations
Auto Trait Implementations
impl<S1, S2> RefUnwindSafe for AndSensor<S1, S2> where
S1: RefUnwindSafe,
S2: RefUnwindSafe,
impl<S1, S2> Send for AndSensor<S1, S2> where
S1: Send,
S2: Send,
impl<S1, S2> Sync for AndSensor<S1, S2> where
S1: Sync,
S2: Sync,
impl<S1, S2> Unpin for AndSensor<S1, S2> where
S1: Unpin,
S2: Unpin,
impl<S1, S2> UnwindSafe for AndSensor<S1, S2> where
S1: UnwindSafe,
S2: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more