Skip to main content

DriverFile

Trait DriverFile 

Source
pub trait DriverFile {
    type Driver: Driver;

    // Required method
    fn open(device: &Device<Self::Driver>) -> Result<Pin<KBox<Self>>>;
}
Expand description

Trait that must be implemented by DRM drivers to represent a DRM File (a client instance).

Required Associated Types§

Source

type Driver: Driver

The parent Driver implementation for this DriverFile.

Required Methods§

Source

fn open(device: &Device<Self::Driver>) -> Result<Pin<KBox<Self>>>

Open a new file (called when a client opens the DRM device).

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§