pub struct TwoPathEstimate {
pub local_usd: f64,
pub escalated: CostEstimate,
pub cache_miss_usd: f64,
}Expand description
The two-path estimate for a plan routed to the local tier: what it costs if it completes locally (≈$0 marginal) vs if it escalates to frontier (frontier estimate + one cache-miss). Reported as a pair — a single number would be wrong in both directions.
Fields§
§local_usd: f64The completes-locally path: $0 marginal (fixed hardware, not per-token).
escalated: CostEstimateThe escalates-to-frontier path (frontier estimate + one cache-miss).
cache_miss_usd: f64The priced cache-miss, once per escalation (see CACHE_MISS_MULT).
Trait Implementations§
Source§impl Clone for TwoPathEstimate
impl Clone for TwoPathEstimate
Source§fn clone(&self) -> TwoPathEstimate
fn clone(&self) -> TwoPathEstimate
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 TwoPathEstimate
Source§impl Debug for TwoPathEstimate
impl Debug for TwoPathEstimate
Source§impl<'de> Deserialize<'de> for TwoPathEstimate
impl<'de> Deserialize<'de> for TwoPathEstimate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TwoPathEstimate
impl PartialEq for TwoPathEstimate
Source§impl Serialize for TwoPathEstimate
impl Serialize for TwoPathEstimate
impl StructuralPartialEq for TwoPathEstimate
Auto Trait Implementations§
impl Freeze for TwoPathEstimate
impl RefUnwindSafe for TwoPathEstimate
impl Send for TwoPathEstimate
impl Sync for TwoPathEstimate
impl Unpin for TwoPathEstimate
impl UnsafeUnpin for TwoPathEstimate
impl UnwindSafe for TwoPathEstimate
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