pub trait Sink {
// Required method
async fn fix(&mut self, fix: &Fix);
}Expand description
What the firmware does with what the receiver says.
Deliberately not “store this in a global”: a sink decides what a fix means. The runtime’s implementation folds it into the ULCP property surface, the wall clock, and the advertised identity; a test’s counts what it was given.
Required Methods§
Sourceasync fn fix(&mut self, fix: &Fix)
async fn fix(&mut self, fix: &Fix)
One completed fix cycle.
Called for every cycle, including the empty ones a searching receiver produces — “still nothing” is a fact worth having, and a sink that only heard about successes could not tell a receiver that is searching from one that is not running.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.