pub trait DifferentialObserversTuple<OTA, OTB, S>: ObserversTuple<S>where
    OTA: ObserversTuple<S>,
    OTB: ObserversTuple<S>,
    S: UsesInput,
{ fn pre_observe_first_all(&mut self, observers: &mut OTA) -> Result<(), Error>; fn post_observe_first_all(
        &mut self,
        observers: &mut OTA
    ) -> Result<(), Error>; fn pre_observe_second_all(
        &mut self,
        observers: &mut OTB
    ) -> Result<(), Error>; fn post_observe_second_all(
        &mut self,
        observers: &mut OTB
    ) -> Result<(), Error>; }
Expand description

Differential observers tuple, for when you’re using multiple differential observers.

Required Methods§

source

fn pre_observe_first_all(&mut self, observers: &mut OTA) -> Result<(), Error>

Perform an operation with the first set of observers before they are pre_exec’d on all the differential observers in this tuple.

source

fn post_observe_first_all(&mut self, observers: &mut OTA) -> Result<(), Error>

Perform an operation with the first set of observers after they are post_exec’d on all the differential observers in this tuple.

source

fn pre_observe_second_all(&mut self, observers: &mut OTB) -> Result<(), Error>

Perform an operation with the second set of observers before they are pre_exec’d on all the differential observers in this tuple.

source

fn post_observe_second_all(&mut self, observers: &mut OTB) -> Result<(), Error>

Perform an operation with the second set of observers after they are post_exec’d on all the differential observers in this tuple.

Implementations on Foreign Types§

source§

impl<OTA, OTB, S> DifferentialObserversTuple<OTA, OTB, S> for ()where
    OTA: ObserversTuple<S>,
    OTB: ObserversTuple<S>,
    S: UsesInput,

source§

impl<Head, Tail, OTA, OTB, S> DifferentialObserversTuple<OTA, OTB, S> for (Head, Tail)where
    Head: DifferentialObserver<OTA, OTB, S>,
    Tail: DifferentialObserversTuple<OTA, OTB, S>,
    OTA: ObserversTuple<S>,
    OTB: ObserversTuple<S>,
    S: UsesInput,

source§

fn pre_observe_first_all(&mut self, observers: &mut OTA) -> Result<(), Error>

source§

fn post_observe_first_all(&mut self, observers: &mut OTA) -> Result<(), Error>

source§

fn pre_observe_second_all(&mut self, observers: &mut OTB) -> Result<(), Error>

source§

fn post_observe_second_all(&mut self, observers: &mut OTB) -> Result<(), Error>

Implementors§