Skip to main content

Emitter

Trait Emitter 

Source
pub trait Emitter<T>: Execute<T> { }
Expand description

A value generator that produces RDF without consuming a payload input.

Arguments, configuration, the environment, or external sources determine the generated values. Generation may be finite or continuous and need not be deterministic. A finite emitter can succeed with an empty RDF result.

§Command-line contract

PROGRAM [OPTIONS]

There are no standard positional operands, and the program must not wait for stdin. RDF is written to stdout in the format selected by EmitterOptions::output (jsonl by default).

Implementations document termination conditions and how T exposes output. See crate::programs for shared conventions and links to concrete execution behavior, and the emitter specification for the external contract.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§