pub struct StaticResult {
pub context_ms: f64,
pub generation_ms: f64,
pub total_ms: f64,
}Expand description
Result of Engine::run_static. Mirrors the latency portion of Python’s
run_static_latency_only (base_backend.py:322): per-phase latency plus
the total. The latencies are pre-latency_correction_scale — that param
is intentionally dropped from the run_static(runtime, mode, stride)
signature; it is a flat post-multiply the Python bridge applies downstream.
Fields§
§context_ms: f64Context-phase latency in ms (0.0 for StaticMode::Generation).
generation_ms: f64Generation-phase latency in ms (0.0 for StaticMode::Context).
total_ms: f64context_ms + generation_ms. Equals Python run_static_latency_only.
Trait Implementations§
Source§impl Clone for StaticResult
impl Clone for StaticResult
Source§fn clone(&self) -> StaticResult
fn clone(&self) -> StaticResult
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 StaticResult
impl Debug for StaticResult
Source§impl PartialEq for StaticResult
impl PartialEq for StaticResult
impl StructuralPartialEq for StaticResult
Auto Trait Implementations§
impl Freeze for StaticResult
impl RefUnwindSafe for StaticResult
impl Send for StaticResult
impl Sync for StaticResult
impl Unpin for StaticResult
impl UnsafeUnpin for StaticResult
impl UnwindSafe for StaticResult
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