Skip to main content

synthesize_error

Function synthesize_error 

Source
pub fn synthesize_error(
    kind: ContentGenerationKind,
    framing: StreamFraming,
    message: &str,
) -> Result<Vec<Bytes>, TransformError>
Expand description

The failure a synthesized stream ends with once its headers are already out: each protocol’s own terminal error event.