pub trait Device {
// Required methods
fn close(self);
fn is_active(&self) -> bool;
}
Expand description
Represents a single device of any type; GPIO-based, SPI-based, I2C-based, etc. It defines the basic services applicable to all devices