Trait Device

Source
pub trait Device: AsRawFd + Sized {
    // Provided methods
    fn magic(&self) -> Result<AuthToken> { ... }
    fn stats(&self) -> Result<()> { ... }
    fn set_client_cap(&self, cap: ClientCapability, set: bool) -> Result<()> { ... }
    fn wait_vblan(&self) { ... }
}
Expand description

A trait for all DRM devices.

Provided Methods§

Source

fn magic(&self) -> Result<AuthToken>

Generates and returns a magic token unique to the current process. This token can be used to authenticate with the DRM Master.

Source

fn stats(&self) -> Result<()>

Source

fn set_client_cap(&self, cap: ClientCapability, set: bool) -> Result<()>

Tells the DRM device whether we understand or do not understand a particular capability. Some features, such as atomic modesetting, require informing the device that the process can use such features before it will expose them.

Source

fn wait_vblan(&self)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a, T> Device for MasterRef<'a, T>
where T: 'a + Device,