Skip to main content

emit

Function emit 

Source
pub fn emit<W: Write, T: Serialize>(
    writer: &mut W,
    code: &str,
    payload: &T,
) -> Result<(), Error>
Expand description

Emit a typed result event to writer and write it as one line of JSON followed by a newline. The command-specific code remains inside result.

Redacts AFDATA _secret fields by default and never panics on well-formed input — but we still funnel through this single seam so print_stdout / print_stderr stay clippy-denied at crate level.