pub trait LinkSensor {
// Required methods
fn sample(&mut self) -> LinkSnapshot;
fn backend(&self) -> &'static str;
}Expand description
A pollable link-quality sensor. sample is called on the controller’s
slow cadence (not per packet).
Required Methods§
Sourcefn sample(&mut self) -> LinkSnapshot
fn sample(&mut self) -> LinkSnapshot
Read the current link snapshot.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".