Skip to main content

Rdf12SourceDiagnosticSink

Trait Rdf12SourceDiagnosticSink 

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

    // Required method
    fn record(
        &mut self,
        diagnostic: Rdf12SourceDiagnostic<Self::Term>,
    ) -> impl Future<Output = Result<(), Self::Error>> + Send;
}
Expand description

Caller-owned streamed/spilled source diagnostics, separate from RDF scratch.

Required Associated Types§

Source

type Term: Clone + Eq + Send + Sync

Exact source term identity.

Source

type Error: Error + Send + Sync + 'static

Storage failure; losing a diagnostic aborts the operation.

Required Methods§

Source

fn record( &mut self, diagnostic: Rdf12SourceDiagnostic<Self::Term>, ) -> impl Future<Output = Result<(), Self::Error>> + Send

Stage one diagnostic with caller-owned source snapshot/graph provenance. Any later failure invalidates all partial diagnostics and inferred output.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§