#[repr(u32)]pub enum ProviderChunkKind {
Content = 0,
Structural = 1,
}Expand description
Chunk kind for ProviderStreamControl::is_cancelled. Appended last so a
plugin compiled against an older, shorter struct reads only the fields it
knows about.
Variants§
Content = 0
A chunk that carries model output (text_delta, thinking_delta, …).
A cancelled request has no one left to deliver it to.
Structural = 1
A structural or accounting chunk (start, *_start, *_end, usage).
Still acknowledged while the request winds down. A host that already
emitted its aborted terminal discards these cleanup chunks.
Trait Implementations§
Source§impl Clone for ProviderChunkKind
impl Clone for ProviderChunkKind
impl Copy for ProviderChunkKind
Source§impl Debug for ProviderChunkKind
impl Debug for ProviderChunkKind
impl Eq for ProviderChunkKind
Source§impl PartialEq for ProviderChunkKind
impl PartialEq for ProviderChunkKind
impl StructuralPartialEq for ProviderChunkKind
Auto Trait Implementations§
impl Freeze for ProviderChunkKind
impl RefUnwindSafe for ProviderChunkKind
impl Send for ProviderChunkKind
impl Sync for ProviderChunkKind
impl Unpin for ProviderChunkKind
impl UnsafeUnpin for ProviderChunkKind
impl UnwindSafe for ProviderChunkKind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.