[−][src]Struct wlroots::backend::Drm
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]
impl Drm
pub unsafe fn new(
display: *mut wl_display,
session: Session,
gpu_fd: c_int,
parent: Option<Drm>,
render_setup_func: Option<UnsafeRenderSetupFunction>
) -> Self
[src]
pub unsafe fn new(
display: *mut wl_display,
session: Session,
gpu_fd: c_int,
parent: Option<Drm>,
render_setup_func: Option<UnsafeRenderSetupFunction>
) -> Self
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).
pub fn output_is_drm(&self, output: &Output) -> bool
[src]
pub fn output_is_drm(&self, output: &Output) -> bool
pub unsafe fn as_ptr(&self) -> *mut wlr_backend
[src]
pub unsafe fn as_ptr(&self) -> *mut wlr_backend
Trait Implementations
impl Eq for Drm
[src]
impl Eq for Drm
impl PartialEq<Drm> for Drm
[src]
impl PartialEq<Drm> for Drm
fn eq(&self, other: &Drm) -> bool
[src]
fn eq(&self, other: &Drm) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Drm) -> bool
[src]
fn ne(&self, other: &Drm) -> bool
This method tests for !=
.
impl Hash for Drm
[src]
impl Hash for Drm
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for Drm
[src]
impl Debug for Drm
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 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