Trait CursorQuery

Source
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§

Source

fn back(self: Box<Self>) -> Box<dyn Cursor>

Give up on the query and return to the document the query was made against.

Source

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.

Source

fn try_next(&self) -> Option<QueryUpdate>

Try to get the next query update, returning None if no update is yet available.

Implementors§