pub enum StreamChunk {
ConnectionOpened,
Content(String),
StatusUpdate(String),
RawData(String),
Done,
Retry {
attempt: u32,
delay_ms: u64,
},
}Expand description
Streaming chunk types
Variants§
ConnectionOpened
Connection opened successfully
Content(String)
Content chunk from the AI response
StatusUpdate(String)
Status update from the processing pipeline
RawData(String)
Raw data that couldn’t be parsed
Done
Stream completed successfully
Retry
Connection retry attempt
Trait Implementations§
Source§impl Clone for StreamChunk
impl Clone for StreamChunk
Source§fn clone(&self) -> StreamChunk
fn clone(&self) -> StreamChunk
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreamChunk
impl Debug for StreamChunk
Source§impl PartialEq for StreamChunk
impl PartialEq for StreamChunk
impl StructuralPartialEq for StreamChunk
Auto Trait Implementations§
impl Freeze for StreamChunk
impl RefUnwindSafe for StreamChunk
impl Send for StreamChunk
impl Sync for StreamChunk
impl Unpin for StreamChunk
impl UnsafeUnpin for StreamChunk
impl UnwindSafe for StreamChunk
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