pub enum SseParseResult {
Done,
Events(Vec<LlmStreamEvent>),
}Expand description
Result of parsing a single SSE data: payload.
Variants§
Done
The value [DONE] — stream terminator, no events.
Events(Vec<LlmStreamEvent>)
One or more events decoded from the JSON frame.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SseParseResult
impl RefUnwindSafe for SseParseResult
impl Send for SseParseResult
impl Sync for SseParseResult
impl Unpin for SseParseResult
impl UnwindSafe for SseParseResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more