pub fn signal_change(&self, clear: Signal, set: Signal) {
        let mut inner = self.inner.lock();
        let old_signal = inner.signal;
        inner.signal.remove(clear);
        inner.signal.insert(set);
        let new_signal = inner.signal;
        if new_signal == old_signal {
            return;
        }
        inner.signal_callbacks.retain(|f| !f(new_signal));
    }
/// Change signal status: first `clear` then `set` indicated bits.
///
/// All signal callbacks will be called.
Change signal status: first `clear` then `set` indicated bits.
All signal callbacks will be called.
Change signal status : first ` clear ` then ` set ` indicated bits . All signal callbacks will be called .
pub fn signal_change(&self, clear: Signal, set: Signal) {
        let mut inner = self.inner.lock();
        let old_signal = inner.signal;
        inner.signal.remove(clear);
        inner.signal.insert(set);
        let new_signal = inner.signal;
        if new_signal == old_signal {
            return;
        }
        inner.signal_callbacks.retain(|f| !f(new_signal));
    }
pub fn signal_change ( & self , clear : Signal , set : Signal ) { let mut inner = self . inner . lock ( ) ; let old_signal = inner . signal ; inner . signal . remove ( clear ) ; inner . signal . insert ( set ) ; let new_signal = inner . signal ; if new_signal == old_signal { return ; } inner . signal_callbacks . retain ( | f | ! f ( new_signal ) ) ; }
Change signal status: first `clear` then `set` indicated bits.
Change signal status : first ` clear ` then ` set ` indicated bits .
&self
clear
Signal
set
Signal
&self
clear
Signal
set
Signal