pub async fn oneshot(&mut self) -> Result<update_check::Response, UpdateCheckError> {
        let options = CheckOptions::default();

        let context = update_check::Context {
            schedule: UpdateCheckSchedule::builder()
                .last_time(clock::now() - Duration::new(500, 0))
                .next_time(clock::now())
                .build(),
            state: ProtocolState::default(),
        };

        let apps = self.app_set.to_vec().await;

        async_generator::generate(move |mut co| async move {
            self.perform_update_check(options, context, apps, &mut co).await
        })
        .into_complete()
        .await
    }
/// Run perform_update_check once, returning the update check result.
Run perform_update_check once, returning the update check result.
Run perform_update_check once returning the update check result .
pub async fn oneshot(&mut self) -> Result<update_check::Response, UpdateCheckError> {
        let options = CheckOptions::default();
        let context = update_check::Context {
            schedule: UpdateCheckSchedule::builder()
                .last_time(clock::now() - Duration::new(500, 0))
                .next_time(clock::now())
                .build(),
            state: ProtocolState::default(),
        };
        let apps = self.app_set.to_vec().await;
        async_generator::generate(move |mut co| async move {
            self.perform_update_check(options, context, apps, &mut co).await
        })
        .into_complete()
        .await
    }
pub async fn oneshot ( & mut self ) -> Result < update_check :: Response , UpdateCheckError > { let options = CheckOptions :: default ( ) ; let context = update_check :: Context { schedule : UpdateCheckSchedule :: builder ( ) . last_time ( clock :: now ( ) - Duration :: new ( 500 , 0 ) ) . next_time ( clock :: now ( ) ) . build ( ) , state : ProtocolState :: default ( ) , } ; let apps = self . app_set . to_vec ( ) . await ; async_generator :: generate ( move | mut co | async move { self . perform_update_check ( options , context , apps , & mut co ) . await } ) . into_complete ( ) . await }
Run perform_update_check once, returning the update check result.
Run perform_update_check once returning the update check result .
&mut self
&mut self