pub trait AppSetExt: AppSet {
    // Provided methods
    fn all_valid(&self) -> bool { ... }
    fn update_from_omaha(&mut self, app_responses: &[AppResponse]) { ... }
    fn load<'a>(
        &'a mut self,
        storage: &'a impl Storage
    ) -> LocalBoxFuture<'a, ()> { ... }
    fn persist<'a>(
        &'a self,
        storage: &'a mut impl Storage
    ) -> LocalBoxFuture<'a, ()> { ... }
}

Provided Methods§

source

fn all_valid(&self) -> bool

Return whether all the apps in the app set are valid.

source

fn update_from_omaha(&mut self, app_responses: &[AppResponse])

Update the cohort and user counting for each app from Omaha app response.

source

fn load<'a>(&'a mut self, storage: &'a impl Storage) -> LocalBoxFuture<'a, ()>

Load data from |storage|, only overwrite existing fields if data exists.

source

fn persist<'a>( &'a self, storage: &'a mut impl Storage ) -> LocalBoxFuture<'a, ()>

Persist cohort and user counting to |storage|, will try to set all of them to storage even if previous set fails. It will NOT call commit() on |storage|, caller is responsible to call commit().

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> AppSetExt for T
where T: AppSet,