Skip to main content

StreamingReadiness

Trait StreamingReadiness 

Source
pub trait StreamingReadiness {
    // Required methods
    fn bars_consumed(&self) -> usize;
    fn warmup_bars(&self) -> usize;

    // Provided method
    fn is_ready(&self) -> bool { ... }
}
Expand description

Readiness state for streaming indicators.

Required Methods§

Source

fn bars_consumed(&self) -> usize

Bars processed since construction (or last reset).

Source

fn warmup_bars(&self) -> usize

Bars required before the indicator is considered ready.

Provided Methods§

Source

fn is_ready(&self) -> bool

True when bars_consumed >= warmup_bars (or heuristic for warmup_bars=0).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§