Skip to main content

HardwareSource

Trait HardwareSource 

Source
pub trait HardwareSource: Send + Sync {
    // Required method
    fn read(&self, data_dir: &Path) -> HardwareId;
}

Required Methods§

Source

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".

Implementors§