pub struct DrmCard { /* private fields */ }Expand description
A card of the DRM subsystem, open for reading and writing.
Implementations§
Source§impl DrmCard
impl DrmCard
Sourcepub fn new(path: Option<&str>) -> Result<Self>
pub fn new(path: Option<&str>) -> Result<Self>
Opens the card path, or, without one, the first card of
/dev/dri (by its number) that has CRTCs, encoders and connectors.
Sourcepub fn from_fd(fd: i32) -> Self
pub fn from_fd(fd: i32) -> Self
The card of a descriptor that is already open; the card closes it.
pub fn get_resources( &self, connectors_force_probe: bool, ) -> Result<DrmResources>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for DrmCard
impl RefUnwindSafe for DrmCard
impl Send for DrmCard
impl Sync for DrmCard
impl Unpin for DrmCard
impl UnsafeUnpin for DrmCard
impl UnwindSafe for DrmCard
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more