fn update_available(&mut self, update: Release) {
        let target = UpdateAgentMachineState::UpdateAvailable((update, 0));
        // Allowed starting states.
        assert!(
            *self == UpdateAgentMachineState::ReportedSteady
                || *self == UpdateAgentMachineState::NoNewUpdate,
            "transition not allowed: {:?} to {:?}",
            self,
            target
        );

        self.transition_to(target);
    }
/// Transition to the UpdateAvailable state with a new release.
Transition to the UpdateAvailable state with a new release.
Transition to the UpdateAvailable state with a new release .
fn update_available(&mut self, update: Release) {
        let target = UpdateAgentMachineState::UpdateAvailable((update, 0));
        // Allowed starting states.
        assert!(
            *self == UpdateAgentMachineState::ReportedSteady
                || *self == UpdateAgentMachineState::NoNewUpdate,
            "transition not allowed: {:?} to {:?}",
            self,
            target
        );
        self.transition_to(target);
    }
fn update_available ( & mut self , update : Release ) { let target = UpdateAgentMachineState :: UpdateAvailable ( ( update , 0 ) ) ; // Allowed starting states. assert ! ( self UpdateAgentMachineState ReportedSteady self UpdateAgentMachineState NoNewUpdate " " self target ) ; self . transition_to ( target ) ; }
Transition to the UpdateAvailable state with a new release.
Transition to the UpdateAvailable state with a new release .
&mut self
update
Release