Skip to main content

LinkSensor

Trait LinkSensor 

Source
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§

Source

fn sample(&mut self) -> LinkSnapshot

Read the current link snapshot.

Source

fn backend(&self) -> &'static str

Backend identifier (for diagnostics).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§