pub struct PackContext<'a> {
pub cap_bytes: u64,
pub stamp: Option<ClockStamp>,
pub net_notice: bool,
pub steer: Option<(String, String)>,
pub reminder: Option<ContextReminder>,
pub offload: Option<OffloadSite<'a>>,
pub sieve: Option<SieveRequest<'a>>,
pub adviser: Option<Consultation>,
}Expand description
Everything one packaging decision needs; all injected, nothing sampled.
Fields§
§cap_bytes: u64This result’s byte budget, derived by the caller from window
remainder. OFFLOAD_MIN_BYTES is a floor for offloading, not a
threshold: smaller oversized results truncate plainly.
stamp: Option<ClockStamp>§net_notice: bool§steer: Option<(String, String)>§reminder: Option<ContextReminder>The fourth attachment: how full the window is, when a threshold
was crossed. The sentence is ContextReminder::render’s.
offload: Option<OffloadSite<'a>>§sieve: Option<SieveRequest<'a>>Present for exec results only. Without an offload site there
is no tee, and without a tee the sieve does not cut.
adviser: Option<Consultation>The window’s adviser, consulted before this call: its answer may
adjust the budget or take the result out of the window, and its
two ledger lines ride Packaged::events whether it answered or
fell back. None means nobody asked, which is not the same as a
fallback and is not recorded as one.