Skip to main content

CbrProvider

Trait CbrProvider 

Source
pub trait CbrProvider: Send {
    // Required method
    fn measure_cbr(&mut self) -> Option<f64>;
}
Expand description

A source of Channel Busy Ratio measurements.

Implementations return the most recent CBR in [0.0, 1.0], or None when no (new) measurement is available. The DCC entity keeps its previous output when None is returned.

Required Methods§

Source

fn measure_cbr(&mut self) -> Option<f64>

Return the current CBR measurement, if any.

Implementors§