pub fn from_stream_line(line: &str) -> Result<Vec<GeminiStreamEvent>, String>Expand description
Decode one inbound SSE data: line into runtime events. Empty/comment
lines yield an empty vec; data: [DONE] yields Finish { reason: None }.
Malformed JSON is surfaced as an Err so the caller can decide whether to
terminate the stream (spec: fail closed on structurally invalid frames).