pub enum StreamTerminal {
DataDone,
ResponseCompleted,
MessageStop,
Eof,
}Expand description
The event that marks the end of a provider’s response stream.
Variants§
DataDone
An SSE data: [DONE] sentinel (OpenAI-style).
ResponseCompleted
A response.completed event (OpenAI Responses-style).
MessageStop
A message_stop event (Anthropic-style).
Eof
End of the stream without an explicit terminal event (Gemini-style).
Trait Implementations§
Source§impl Clone for StreamTerminal
impl Clone for StreamTerminal
impl Copy for StreamTerminal
Source§impl Debug for StreamTerminal
impl Debug for StreamTerminal
Source§impl Default for StreamTerminal
impl Default for StreamTerminal
impl Eq for StreamTerminal
Source§impl PartialEq for StreamTerminal
impl PartialEq for StreamTerminal
impl StructuralPartialEq for StreamTerminal
Auto Trait Implementations§
impl Freeze for StreamTerminal
impl RefUnwindSafe for StreamTerminal
impl Send for StreamTerminal
impl Sync for StreamTerminal
impl Unpin for StreamTerminal
impl UnsafeUnpin for StreamTerminal
impl UnwindSafe for StreamTerminal
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.