pub struct ResidentRuntimeEvidence {
pub schema_version: u32,
pub resident_device_bytes: u64,
pub host_copy_bytes: u64,
pub host_copy_avoided_bytes: u64,
pub ring_occupancy: RingOccupancy,
pub control_decode_ns: u64,
pub ring_decode_ns: u64,
pub coverage: RuntimeEvidenceMetricCoverage,
}Expand description
Runtime-owned IO/residency evidence envelope for release and benchmark artifacts.
Fields§
§schema_version: u32Runtime evidence schema version.
resident_device_bytes: u64Device-resident bytes retained by the dispatch family.
host_copy_bytes: u64Host-visible copy bytes still required for this evidence sample.
host_copy_avoided_bytes: u64Host copy bytes avoided by resident handles or device-side IO.
ring_occupancy: RingOccupancyRing occupancy snapshot.
control_decode_ns: u64Control-buffer decode cost in nanoseconds.
ring_decode_ns: u64Ring decode cost in nanoseconds.
coverage: RuntimeEvidenceMetricCoverageRequired metric-family coverage.
Implementations§
Source§impl ResidentRuntimeEvidence
impl ResidentRuntimeEvidence
Sourcepub const fn complete(
resident_device_bytes: u64,
host_copy_bytes: u64,
host_copy_avoided_bytes: u64,
ring_occupancy: RingOccupancy,
control_decode_ns: u64,
ring_decode_ns: u64,
) -> Self
pub const fn complete( resident_device_bytes: u64, host_copy_bytes: u64, host_copy_avoided_bytes: u64, ring_occupancy: RingOccupancy, control_decode_ns: u64, ring_decode_ns: u64, ) -> Self
Construct a complete runtime evidence envelope.
Sourcepub fn missing_metric_families(&self) -> Vec<RuntimeEvidenceMetricFamily>
pub fn missing_metric_families(&self) -> Vec<RuntimeEvidenceMetricFamily>
Metric families missing from this evidence envelope.
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Whether all required runtime evidence families are present.
Sourcepub fn host_copy_avoidance_bps(&self) -> u16
pub fn host_copy_avoidance_bps(&self) -> u16
Avoided host-copy bytes in basis points of total relevant copy volume.
Trait Implementations§
Source§impl Clone for ResidentRuntimeEvidence
impl Clone for ResidentRuntimeEvidence
Source§fn clone(&self) -> ResidentRuntimeEvidence
fn clone(&self) -> ResidentRuntimeEvidence
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 moreSource§impl Debug for ResidentRuntimeEvidence
impl Debug for ResidentRuntimeEvidence
impl Eq for ResidentRuntimeEvidence
Source§impl PartialEq for ResidentRuntimeEvidence
impl PartialEq for ResidentRuntimeEvidence
impl StructuralPartialEq for ResidentRuntimeEvidence
Auto Trait Implementations§
impl Freeze for ResidentRuntimeEvidence
impl RefUnwindSafe for ResidentRuntimeEvidence
impl Send for ResidentRuntimeEvidence
impl Sync for ResidentRuntimeEvidence
impl Unpin for ResidentRuntimeEvidence
impl UnsafeUnpin for ResidentRuntimeEvidence
impl UnwindSafe for ResidentRuntimeEvidence
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.