Struct ExecutionReceipt
pub struct ExecutionReceipt {Show 13 fields
pub schema_version: u16,
pub requested_backend: BackendKind,
pub executed_backend: BackendKind,
pub model_instance_id: String,
pub prepared_plan_id: String,
pub graph_hash: String,
pub tuning_profile: String,
pub stop_reason: String,
pub counter_coverage: u64,
pub counters: ExecutionCounters,
pub latency: RequestLatencyTelemetry,
pub stage_receipts: [Option<StageTimingReceipt>; 16],
pub artifacts: ArtifactCleanupCounters,
}Fields§
§schema_version: u16§requested_backend: BackendKind§executed_backend: BackendKind§model_instance_id: String§prepared_plan_id: String§graph_hash: String§tuning_profile: StringCold backend tuning record. Empty for runtimes without an explicit tuning profile.
stop_reason: String§counter_coverage: u64Bit set means the corresponding ExecutionCounters value was measured or proven.
An unset bit distinguishes “unknown” from a measured zero.
counters: ExecutionCounters§latency: RequestLatencyTelemetry§stage_receipts: [Option<StageTimingReceipt>; 16]Per-turn lifecycle-stage timings (stage:* in
core-ontologies/inference-lifecycle.n3), recorded on the zero-heap
stack during decode and attached to the receipt at end-of-turn.
None slots are unused tail capacity.
artifacts: ArtifactCleanupCountersImplementations§
§impl ExecutionReceipt
impl ExecutionReceipt
pub fn new(
requested_backend: BackendKind,
executed_backend: BackendKind,
model_instance_id: impl Into<String>,
prepared_plan_id: impl Into<String>,
) -> ExecutionReceipt
pub fn new( requested_backend: BackendKind, executed_backend: BackendKind, model_instance_id: impl Into<String>, prepared_plan_id: impl Into<String>, ) -> ExecutionReceipt
Creates a default ExecutionReceipt.
pub fn record_stage(&mut self, receipt: StageTimingReceipt) -> bool
pub fn record_stage(&mut self, receipt: StageTimingReceipt) -> bool
Record a lifecycle-stage timing on the fixed-capacity receipt array.
Repeat records for the same stage kind coalesce (latest status,
saturating accumulation), matching super::super::stage::StageTrace
semantics. Returns false when all 16 slots are occupied by distinct
kinds.
pub fn apply_stage_trace(&mut self, trace: &StageTrace)
pub fn apply_stage_trace(&mut self, trace: &StageTrace)
Drain a super::super::stage::StageTrace into this receipt.
pub fn mark_measured(&mut self, flag: u64)
pub fn mark_measured(&mut self, flag: u64)
Sets measured flag flag.
pub fn is_measured(&self, flag: u64) -> bool
pub fn is_measured(&self, flag: u64) -> bool
true when flag measured.
pub fn backend_matches_request(&self) -> bool
pub fn backend_matches_request(&self) -> bool
true when the used backend matched the request.
Trait Implementations§
§impl Clone for ExecutionReceipt
impl Clone for ExecutionReceipt
§fn clone(&self) -> ExecutionReceipt
fn clone(&self) -> ExecutionReceipt
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for ExecutionReceipt
impl Debug for ExecutionReceipt
§impl<'de> Deserialize<'de> for ExecutionReceipt
impl<'de> Deserialize<'de> for ExecutionReceipt
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExecutionReceipt, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExecutionReceipt, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for ExecutionReceipt
§impl PartialEq for ExecutionReceipt
impl PartialEq for ExecutionReceipt
§impl Serialize for ExecutionReceipt
impl Serialize for ExecutionReceipt
§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,
impl StructuralPartialEq for ExecutionReceipt
Auto Trait Implementations§
impl Freeze for ExecutionReceipt
impl RefUnwindSafe for ExecutionReceipt
impl Send for ExecutionReceipt
impl Sync for ExecutionReceipt
impl Unpin for ExecutionReceipt
impl UnsafeUnpin for ExecutionReceipt
impl UnwindSafe for ExecutionReceipt
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more