pub struct DrmResources { /* private fields */ }Expand description
The connectors and encoders of a card.
Implementations§
Source§impl DrmResources
impl DrmResources
Sourcepub fn new(fd: i32, connectors_force_probe: bool) -> Result<Self>
pub fn new(fd: i32, connectors_force_probe: bool) -> Result<Self>
Reads the resources of the card fd; with connectors_force_probe
the connectors are probed (drmModeGetConnector, which may take
long), else their current state is read.
pub fn connectors(&self) -> &[DrmConnector]
Trait Implementations§
Source§impl Clone for DrmResources
impl Clone for DrmResources
Source§impl Debug for DrmResources
impl Debug for DrmResources
Auto Trait Implementations§
impl Freeze for DrmResources
impl RefUnwindSafe for DrmResources
impl Send for DrmResources
impl Sync for DrmResources
impl Unpin for DrmResources
impl UnsafeUnpin for DrmResources
impl UnwindSafe for DrmResources
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