pub struct StatusMessage {
pub room: u64,
pub status: TransferPoll,
pub prefill_rank: i64,
pub bootstrap_token: i64,
pub spec_candidate_ids: Option<Vec<i32>>,
pub cached_tokens: i64,
pub bootstrap_logprob: Option<f64>,
}Expand description
A Prefill rank’s report on one room.
Fields§
§room: u64The room.
status: TransferPollIts state on the sender.
prefill_rank: i64The sender in Decode’s completion-tracking rank space.
bootstrap_token: i64The first output token, -1 if none.
spec_candidate_ids: Option<Vec<i32>>The drafter’s candidates for the first decode, if any.
cached_tokens: i64Prompt tokens the sender served from its cache.
bootstrap_logprob: Option<f64>The first token’s logprob, if the request returns logprobs.
Implementations§
Source§impl StatusMessage
impl StatusMessage
Sourcepub fn bare(room: u64, status: TransferPoll, prefill_rank: i64) -> Self
pub fn bare(room: u64, status: TransferPoll, prefill_rank: i64) -> Self
A bare status: no first token and no usage.
Sourcepub fn from_frames(frames: &[Bytes]) -> Result<Self, WireError>
pub fn from_frames(frames: &[Bytes]) -> Result<Self, WireError>
Parse a status message; the last three frames are optional, as older senders omit them.
Trait Implementations§
Source§impl Clone for StatusMessage
impl Clone for StatusMessage
Source§impl Debug for StatusMessage
impl Debug for StatusMessage
Source§impl PartialEq for StatusMessage
impl PartialEq for StatusMessage
impl StructuralPartialEq for StatusMessage
Auto Trait Implementations§
impl Freeze for StatusMessage
impl RefUnwindSafe for StatusMessage
impl Send for StatusMessage
impl Sync for StatusMessage
impl Unpin for StatusMessage
impl UnsafeUnpin for StatusMessage
impl UnwindSafe for StatusMessage
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