pub trait SignalTimeTracker {
// Required methods
fn last_signal_time(&self) -> Option<SystemTime>;
fn time_between_signals(&self) -> Option<Duration>;
}Required Methods§
Sourcefn last_signal_time(&self) -> Option<SystemTime>
fn last_signal_time(&self) -> Option<SystemTime>
Returns the time when the last signal was received, if any.
Sourcefn time_between_signals(&self) -> Option<Duration>
fn time_between_signals(&self) -> Option<Duration>
Returns the duration between the last two signals, if at least two signals were received.