Skip to main content

DsfbObserver

Struct DsfbObserver 

Source
pub struct DsfbObserver { /* private fields */ }
Expand description

The DSFB observer for a single residual source channel.

For multi-channel observation (e.g., monitoring latency + throughput + heartbeat RTT simultaneously), create one DsfbObserver per channel and correlate their outputs externally.

Implementations§

Source§

impl DsfbObserver

Source

pub fn new(source: ResidualSource, config: &ObserverConfig) -> Self

Create a new observer for the given source channel.

Source

pub fn with_heuristics( source: ResidualSource, config: &ObserverConfig, heuristics: HeuristicsBank, ) -> Self

Create an observer with a custom heuristics bank.

Source

pub fn set_envelope(&mut self, envelope: AdmissibilityEnvelope)

Set the admissibility envelope (e.g., after regime classification).

Source

pub fn set_static_priors(&mut self, static_priors: StaticPriorSet)

Replace the static priors used during heuristic matching.

Source

pub fn observe_adapted<T, A>( &mut self, adapter: &A, input: &T, ) -> ObservationResult
where A: TelemetryAdapter<T>,

Adapt and observe one application-specific telemetry record.

Source

pub fn observe(&mut self, sample: &ResidualSample) -> ObservationResult

Process a single residual sample and return the full observation result.

This is the primary API. It accepts an immutable reference to a sample and returns a complete structural interpretation.

§Non-Interference

The sample is accepted as &ResidualSample. No mutation of the sample or its originating system is possible through this API.

Source

pub fn grammar_state(&self) -> GrammarState

Current grammar state.

Source

pub fn observation_count(&self) -> u64

Total observations processed.

Source

pub fn audit_trace(&self) -> &AuditTrace

Reference to the audit trace.

Source

pub fn current_episode(&self) -> Option<&Episode>

Current open episode, if any.

Source

pub fn reset(&mut self)

Reset the observer state. Used on system restart or phase transition.

Source

pub fn source(&self) -> ResidualSource

Source channel this observer tracks.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.