Trait axdriver::prelude::BaseDriverOps
source · pub trait BaseDriverOps: Send + Sync {
// Required methods
fn device_name(&self) -> &str;
fn device_type(&self) -> DeviceType;
}
Expand description
Common operations that require all device drivers to implement.
Required Methods§
sourcefn device_name(&self) -> &str
fn device_name(&self) -> &str
The name of the device.
sourcefn device_type(&self) -> DeviceType
fn device_type(&self) -> DeviceType
The type of the device.