Skip to main content

PdevExt

Trait PdevExt 

Source
pub trait PdevExt {
    // Required method
    fn connect_to_pdev(&self) -> Result<Client<Device>, DriverError>;
}
Expand description

Extension trait for [DriverContext] to simplify connecting to a platform device in a driver’s start routine.

Required Methods§

Source

fn connect_to_pdev(&self) -> Result<Client<Device>, DriverError>

Connects to the platform device (“pdev”) in the incoming namespace.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl PdevExt for DriverContext

Implementors§