fn deploy_attempt_failed(release: &Release, state: &mut UpdateAgentMachineState) -> u8 {
        let (is_abandoned, fail_count) = state.record_failed_deploy();
        if is_abandoned {
            log::warn!(
                "persistent deploy failure detected, target release '{}' abandoned",
                release.version
            );
        }
        fail_count
    }
/// Record a failed deploy attempt and return the total number of
/// failed deployment attempts.
Record a failed deploy attempt and return the total number of
failed deployment attempts.
Record a failed deploy attempt and return the total number of failed deployment attempts .
fn deploy_attempt_failed(release: &Release, state: &mut UpdateAgentMachineState) -> u8 {
        let (is_abandoned, fail_count) = state.record_failed_deploy();
        if is_abandoned {
            log::warn!(
                "persistent deploy failure detected, target release '{}' abandoned",
                release.version
            );
        }
        fail_count
    }
fn deploy_attempt_failed ( release : & Release , state : & mut UpdateAgentMachineState ) -> u8 { let ( is_abandoned , fail_count ) = state . record_failed_deploy ( ) ; if is_abandoned { log :: warn ! ( " " release version ) ; } fail_count }
Record a failed deploy attempt and return the total number of
failed deployment attempts.
Record a failed deploy attempt and return the total number of failed deployment attempts .
release
&Release
state
&mut UpdateAgentMachineState