async fn report_error<'a>(
        &'a mut self,
        request_params: &'a RequestParams,
        errorcode: EventErrorCode,
        apps: &'a Vec<App>,
        co: &mut async_generator::Yield<StateMachineEvent>,
    ) {
        self.set_state(State::InstallationError, co).await;

        let event = Event {
            event_type: EventType::UpdateComplete,
            errorcode: Some(errorcode),
            ..Event::default()
        };
        self.report_omaha_event(&request_params, event, apps).await;
    }
/// Set the current state to |InstallationError| and report the error event to Omaha.
Set the current state to |InstallationError| and report the error event to Omaha.
Set the current state to |InstallationError| and report the error event to Omaha .
async fn report_error<'a>(
        &'a mut self,
        request_params: &'a RequestParams,
        errorcode: EventErrorCode,
        apps: &'a Vec<App>,
        co: &mut async_generator::Yield<StateMachineEvent>,
    ) {
        self.set_state(State::InstallationError, co).await;
        let event = Event {
            event_type: EventType::UpdateComplete,
            errorcode: Some(errorcode),
            ..Event::default()
        };
        self.report_omaha_event(&request_params, event, apps).await;
    }
async fn report_error < ' a > ( & ' a mut self , request_params : & ' a RequestParams , errorcode : EventErrorCode , apps : & ' a Vec < App > , co : & mut async_generator :: Yield < StateMachineEvent > , ) { self . set_state ( State :: InstallationError , co ) . await ; let event = Event { event_type : EventType :: UpdateComplete , errorcode : Some ( errorcode ) , .. Event :: default ( ) } ; self . report_omaha_event ( & request_params , event , apps ) . await ; }
Set the current state to |InstallationError| and report the error event to Omaha.
Set the current state to |InstallationError| and report the error event to Omaha .
&'a mut self
request_params
&'a RequestParams
errorcode
EventErrorCode
apps
&'a Vec<App>
co
&mut async_generator::Yield<StateMachineEvent>
&'a mut self
request_params
&'a RequestParams
errorcode
EventErrorCode
apps
&'a Vec<App>
co
&mut async_generator::Yield<StateMachineEvent>