fn transition_to(&mut self, state: Self) {
        use std::mem::discriminant;
        if discriminant(self) != discriminant(&state) {
            LATEST_STATE_CHANGE.set(chrono::Utc::now().timestamp());
        }

        *self = state;
    }
/// Progress the machine to a new state.
Progress the machine to a new state.
Progress the machine to a new state .
fn transition_to(&mut self, state: Self) {
        use std::mem::discriminant;
        if discriminant(self) != discriminant(&state) {
            LATEST_STATE_CHANGE.set(chrono::Utc::now().timestamp());
        }
        *self = state;
    }
fn transition_to ( & mut self , state : Self ) { use std :: mem :: discriminant ; if discriminant ( self ) != discriminant ( & state ) { LATEST_STATE_CHANGE . set ( chrono :: Utc :: now ( ) . timestamp ( ) ) ; } * self = state ; }
Progress the machine to a new state.
Progress the machine to a new state .
&mut self
state
Self