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