Trait ForkCursor

Source
pub trait ForkCursor {
    // Required methods
    fn complete<'async_trait>(
        self: Box<Self>,
    ) -> Pin<Box<dyn Future<Output = Result<NewCursor, CursorError>> + Send + 'async_trait>>
       where Self: 'async_trait;
    fn complete_local(self: Box<Self>) -> Result<Option<NewCursor>, CursorError>;
}

Required Methods§

Source

fn complete<'async_trait>( self: Box<Self>, ) -> Pin<Box<dyn Future<Output = Result<NewCursor, CursorError>> + Send + 'async_trait>>
where Self: 'async_trait,

Complete the opening of a new cursor, returning the document it was commanded to start from.

Source

fn complete_local(self: Box<Self>) -> Result<Option<NewCursor>, CursorError>

Complete the opening of a new cursor, returning the document it was commanded to start from.

Implementors§