pub enum PrefetchOutcome {
Settled {
tool: String,
args: Value,
body: String,
predicted_cost_tokens: u32,
},
Failed {
tool: String,
error: PrefetchError,
},
Skipped {
tool: String,
reason: SkipReason,
},
}Expand description
Outcome of a single prefetch task as observed by
SpeculationEngine::wait_within.
Variants§
Settled
Prefetch landed within the timeout. The body is ready to write
into the dedup cache. predicted_cost_tokens carries the
planner’s admit-time estimate so callers can pass it through
to telemetry (PipelineEvent.enricher_predicted_cost_tokens).
Failed
Prefetch returned an error. Counted as wasted; logged at WARN.
Skipped
Prefetch was rate-limited at scheduling time — the engine
never even spawned it. Used by callers to attribute the
prefetch_dispatched gap.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PrefetchOutcome
impl RefUnwindSafe for PrefetchOutcome
impl Send for PrefetchOutcome
impl Sync for PrefetchOutcome
impl Unpin for PrefetchOutcome
impl UnsafeUnpin for PrefetchOutcome
impl UnwindSafe for PrefetchOutcome
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