pub struct AndSensor<S1, S2>(pub S1, pub S2) 
where
    S1: Sensor,
    S2: Sensor
;
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: S11: S2

Trait Implementations

Save information about self to the stats folder Read more

Signal to the sensor that it should prepare to record observations

Signal to the sensor that it should stop recording observations

Access the sensor’s observations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Maps the observations of the sensor using the given closure. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.