pub trait HardwareSource: Send + Sync {
// Required method
fn read(&self, data_dir: &Path) -> HardwareId;
}Required Methods§
Sourcefn read(&self, data_dir: &Path) -> HardwareId
fn read(&self, data_dir: &Path) -> HardwareId
Empty when no id can be read here.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".