Skip to main content

OutputCallback

Type Alias OutputCallback 

Source
pub type OutputCallback = Box<dyn FnMut(&[u8]) + Send>;
Expand description

A raw-byte streaming callback for stdout/stderr (TS (data: Uint8Array) => void). Invoked once per output chunk as it arrives. Never assume UTF-8: chunks are delivered as raw bytes.

Aliased Typeยง

pub struct OutputCallback(/* private fields */);