pub trait ClockInterface {
// Required methods
fn is_enabled(&self) -> bool;
fn enable(&self);
fn disable(&self);
}Expand description
Generic operations that clock-like things are expected to support.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".