pub trait QueryEngine {
// Required method
fn select<'life0, 'life1, 'async_trait>(
&'life0 self,
filter: &'life1 Filter,
today: Date,
) -> Pin<Box<dyn Future<Output = Vec<Id>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Evaluate a query’s filter — the ids of tasks that match (unsorted). today
is the reference date for due:today/overdue. Object-safe (no generic
methods), so it rides in Services as &dyn. Sorting + breadcrumbs are the
caller’s job (todoapp-app), identical across stores.
Required Methods§
fn select<'life0, 'life1, 'async_trait>(
&'life0 self,
filter: &'life1 Filter,
today: Date,
) -> Pin<Box<dyn Future<Output = Vec<Id>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".