Skip to main content

TripleCursor

Trait TripleCursor 

Source
pub trait TripleCursor: Send {
    type Term: Clone + Eq + Send + Sync;
    type Error: Error + Send + Sync + 'static;

    // Required method
    fn next(
        &mut self,
    ) -> impl Future<Output = Result<Option<[Self::Term; 3]>, Self::Error>> + Send;
}
Expand description

A fallible, bounded cursor over an immutable snapshot’s matching tuples.

Required Associated Types§

Source

type Term: Clone + Eq + Send + Sync

Caller-owned exact RDF term identity; scoped blanks must remain distinct.

Source

type Error: Error + Send + Sync + 'static

Read failures, including cancellation, must never become end of stream.

Required Methods§

Source

fn next( &mut self, ) -> impl Future<Output = Result<Option<[Self::Term; 3]>, Self::Error>> + Send

Read at most one tuple. Drop must release/cancel the underlying read.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§