Trait fav_core::ops::ResOpsExt

source ·
pub trait ResOpsExt: ResOps {
    // Provided methods
    fn batch_fetch_res<'a, S>(
        &self,
        set: &'a mut S
    ) -> impl Future<Output = FavCoreResult<()>>
       where S: Set<Res = Self::Res> { ... }
    fn batch_pull_res<'a, S>(
        &self,
        set: &'a mut S
    ) -> impl Future<Output = FavCoreResult<()>>
       where S: Set<Res = Self::Res> { ... }
}
Expand description

SetOpsExt, including methods to batch fetch and pull resources in set.

§Example

let app = App::default();
let mut set = TestSet::default();
let mut sub = set.subset(|r| r.check_status(StatusFlags::TRACK));
app.batch_fetch_res(&mut sub);

Provided Methods§

source

fn batch_fetch_res<'a, S>( &self, set: &'a mut S ) -> impl Future<Output = FavCoreResult<()>>
where S: Set<Res = Self::Res>,

Asynchronously fetch resourses in set using ResOps::fetch_res.

source

fn batch_pull_res<'a, S>( &self, set: &'a mut S ) -> impl Future<Output = FavCoreResult<()>>
where S: Set<Res = Self::Res>,

Asynchronously pull resourses in set using ResOps::pull_res.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> ResOpsExt for T
where T: ResOps,