Skip to main content

GraphOutput

Type Alias GraphOutput 

Source
pub type GraphOutput = Output;
Expand description

Stdout handling for a graph producer, whose captured output is a JSONL batch stream.

Aliased Type§

pub enum GraphOutput {
    Ignored,
    Inherited,
    Captured,
    AsyncWrite(Box<dyn AsyncWrite + Sync + Unpin + Send>),
}

Variants§

§

Ignored

Discards output by connecting the stream to the null device.

§

Inherited

Connects stdout to the parent’s stdout, with no captured output batches. Output batching settings do not apply. Consume graph execution streams to completion to observe failures; see the module example. A limited lister routes through a line-counting pipe before forwarding.

§

Captured

Pipes output for streaming or collection into the program’s result.

§

AsyncWrite(Box<dyn AsyncWrite + Sync + Unpin + Send>)

Stores an asynchronous destination and requests a pipe for the child.

Wrappers forward stdout incrementally with backpressure and flush the writer at EOF, without shutting it down. No bytes are also captured. Write/flush failures fail execution. Graph streams own the writer after successful spawning; subsequent calls on that wrapper discard stdout. Buffered wrappers retain the writer for reuse. Omitted from debug output.