pub trait DeviceDriver {
// Required method
fn compatible(&self) -> &'static str;
// Provided method
unsafe fn init(&self) -> Result<(), &'static str> { ... }
}Expand description
Device Driver function.
Required Methods§
Sourcefn compatible(&self) -> &'static str
fn compatible(&self) -> &'static str
Return a compatibility string for identifying the driver.