Trait kernel::drm::file::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).

Object Safety§

This trait is not object safe.

Implementors§