Skip to main content

write_message

Function write_message 

Source
pub fn write_message(
    output: &mut impl Write,
    message: &Message,
    limit: NonZeroU32,
) -> Result<(), Error>
Expand description

Validate an envelope and write its tagged JSON in one flushed frame.

ยงErrors

Propagates Start and Ready validation refusals; returns embed_protocol for invalid Failed envelopes, encoding, framing, output or flush failures.