pub trait SpiExt {
// Required method
fn connect_to_spi(
&self,
instance: &str,
) -> Result<Client<Device>, DriverError>;
}Expand description
Extension trait for DriverContext to simplify connecting to SPI resources.
Required Methods§
Sourcefn connect_to_spi(&self, instance: &str) -> Result<Client<Device>, DriverError>
fn connect_to_spi(&self, instance: &str) -> Result<Client<Device>, DriverError>
Connects to a SPI resource with the given instance name.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".