pub struct CodecFrame {
pub ids: Vec<u32>,
pub done: bool,
pub finish_reason: Option<String>,
}Expand description
One streaming frame produced by a Codec-compliant server.
Identical shape across MessagePack and Protobuf wire modes — only serialization differs.
Fields§
§ids: Vec<u32>Token IDs emitted by the model in this chunk.
done: booltrue on the final frame — no further frames follow.
finish_reason: Option<String>Set on the final frame: e.g. "length", "stop", "eos_token", "error".
Implementations§
Trait Implementations§
Source§impl Clone for CodecFrame
impl Clone for CodecFrame
Source§fn clone(&self) -> CodecFrame
fn clone(&self) -> CodecFrame
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 CodecFrame
impl Debug for CodecFrame
Source§impl Default for CodecFrame
impl Default for CodecFrame
Source§fn default() -> CodecFrame
fn default() -> CodecFrame
Returns the “default value” for a type. Read more
Source§impl PartialEq for CodecFrame
impl PartialEq for CodecFrame
Source§fn eq(&self, other: &CodecFrame) -> bool
fn eq(&self, other: &CodecFrame) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CodecFrame
impl StructuralPartialEq for CodecFrame
Auto Trait Implementations§
impl Freeze for CodecFrame
impl RefUnwindSafe for CodecFrame
impl Send for CodecFrame
impl Sync for CodecFrame
impl Unpin for CodecFrame
impl UnsafeUnpin for CodecFrame
impl UnwindSafe for CodecFrame
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