pub trait CursorQuery {
// Required methods
fn back(self: Box<Self>) -> Box<dyn Cursor>;
fn next<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = QueryUpdate> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn try_next(&self) -> Option<QueryUpdate>;
}
Expand description
An active query on a document.
Required Methods§
Sourcefn back(self: Box<Self>) -> Box<dyn Cursor>
fn back(self: Box<Self>) -> Box<dyn Cursor>
Give up on the query and return to the document the query was made against.
Sourcefn next<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = QueryUpdate> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn next<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = QueryUpdate> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the next query update.
Sourcefn try_next(&self) -> Option<QueryUpdate>
fn try_next(&self) -> Option<QueryUpdate>
Try to get the next query update, returning None
if no update is yet
available.