pub trait DeviceConfig: Sync + Send {
// Required method
fn hardware_led_count(&self) -> usize;
// Provided methods
fn rewrite_time(&self) -> Option<Duration> { ... }
fn latch_time(&self) -> Duration { ... }
}Required Methods§
fn hardware_led_count(&self) -> usize
Provided Methods§
fn rewrite_time(&self) -> Option<Duration>
fn latch_time(&self) -> Duration
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".