pub struct PrefillProgress {
pub initial_position: u64,
pub requested_tokens: u64,
pub admitted_tokens: u64,
pub admitted_chunks: u32,
pub position: u64,
}Expand description
Progress at one complete text-prefill boundary.
Fields§
§initial_position: u64Position before this prefill operation.
requested_tokens: u64Total tokens requested by the operation.
admitted_tokens: u64Complete tokens admitted so far.
admitted_chunks: u32Complete chunks admitted so far.
position: u64Current causal position.
Implementations§
Trait Implementations§
Source§impl Clone for PrefillProgress
impl Clone for PrefillProgress
Source§fn clone(&self) -> PrefillProgress
fn clone(&self) -> PrefillProgress
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 moreimpl Copy for PrefillProgress
Source§impl Debug for PrefillProgress
impl Debug for PrefillProgress
Source§impl<'de> Deserialize<'de> for PrefillProgress
impl<'de> Deserialize<'de> for PrefillProgress
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PrefillProgress, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PrefillProgress, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PrefillProgress
Source§impl PartialEq for PrefillProgress
impl PartialEq for PrefillProgress
Source§impl Serialize for PrefillProgress
impl Serialize for PrefillProgress
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PrefillProgress
Auto Trait Implementations§
impl Freeze for PrefillProgress
impl RefUnwindSafe for PrefillProgress
impl Send for PrefillProgress
impl Sync for PrefillProgress
impl Unpin for PrefillProgress
impl UnsafeUnpin for PrefillProgress
impl UnwindSafe for PrefillProgress
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