Skip to main content

netdev

Function netdev 

Source
pub async fn netdev<Fut>(
    dev: &dyn Netdev,
    samples: usize,
    tick: impl FnMut() -> Fut,
) -> Vec<Failure>
where Fut: Future<Output = ()>,
Expand description

The interface has a name, and within one presence epoch no counter goes backwards: samples readings, tick awaited between each — a sleep, or whatever lets the device’s poller run.

A counter that does decrease is the device’s cue to move its epoch, which is the one reset the registry sanctions; a decrease without one is what this catches.