pub struct ResidualSample {
pub value: f64,
pub baseline: f64,
pub timestamp_ns: u64,
pub source: ResidualSource,
}Expand description
A single residual measurement sample from the observed system.
This is the input to the DSFB observer. It is accepted as an immutable reference — no mutation of the sample or its source is possible through this type.
Fields§
§value: f64The measured value (e.g., latency in nanoseconds).
baseline: f64The expected/baseline value for this source under current regime.
timestamp_ns: u64Monotonic timestamp in nanoseconds (or cycle index).
source: ResidualSourceWhich telemetry channel produced this sample.
Implementations§
Trait Implementations§
Source§impl Clone for ResidualSample
impl Clone for ResidualSample
Source§fn clone(&self) -> ResidualSample
fn clone(&self) -> ResidualSample
Returns a duplicate of the value. Read more
1.0.0 · 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 ResidualSample
impl Debug for ResidualSample
Source§impl TelemetryAdapter<ResidualSample> for IdentityTelemetryAdapter
impl TelemetryAdapter<ResidualSample> for IdentityTelemetryAdapter
Source§fn adapt(&self, input: &ResidualSample) -> ResidualSample
fn adapt(&self, input: &ResidualSample) -> ResidualSample
Convert one application-specific telemetry record into a DSFB sample.
impl Copy for ResidualSample
Auto Trait Implementations§
impl Freeze for ResidualSample
impl RefUnwindSafe for ResidualSample
impl Send for ResidualSample
impl Sync for ResidualSample
impl Unpin for ResidualSample
impl UnsafeUnpin for ResidualSample
impl UnwindSafe for ResidualSample
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