[][src]Struct wlroots::backend::Drm

pub struct Drm { /* fields omitted */ }

When the compositor is ran on a TTY and has full control of the system resources.

This is primarily the backend that end users will use, as they usually want the compositor to run standalone.

Note that because you have full control of the TTY (and the keyboard, the mouse, and just about everything else) that if there's an infinite loop then you could hard-lock yourself out of the system. At that point you must reboot your computer (or use SysRq).

Note that if the process exits for any reason (a panic, an abort, or a clean exit) all of the resource handles will automatically be cleaned up properly by the OS.

Methods

impl Drm
[src]

Creates a DRM backend using the specified GPU file descriptor (typically from a device node in /dev/dri).

To slave this to another DRM backend, pass it as the parent (which must be a DRM backend, other kinds of backends raise SIGABRT).

Trait Implementations

impl Eq for Drm
[src]

impl PartialEq<Drm> for Drm
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for Drm
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for Drm
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for Drm

impl !Sync for Drm

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more