pub struct Resources { /* private fields */ }Expand description
Resources structure.
Can be obtained by call to drm_mode::get_mode_resources
Implementations§
Source§impl Resources
General methods
impl Resources
General methods
Sourcepub fn new(resources: drmModeResPtr) -> Self
pub fn new(resources: drmModeResPtr) -> Self
Resources constructor.
Does not check if passed arguments are valid.
Source§impl Resources
Getters for original members
impl Resources
Getters for original members
Sourcepub fn get_count_fbs(&self) -> i32
pub fn get_count_fbs(&self) -> i32
Returns count of frame buffers.
Sourcepub fn get_count_crtcs(&self) -> i32
pub fn get_count_crtcs(&self) -> i32
Returns count of CRTCs
Sourcepub fn get_count_connectors(&self) -> i32
pub fn get_count_connectors(&self) -> i32
Return count of connectors.
Sourcepub fn get_count_encoders(&self) -> i32
pub fn get_count_encoders(&self) -> i32
Return count of encoders.
Sourcepub fn get_encoders(&self) -> Vec<EncoderId> ⓘ
pub fn get_encoders(&self) -> Vec<EncoderId> ⓘ
Return vector of encoder ids.
Sourcepub fn get_connectors(&self) -> Vec<ConnectorId> ⓘ
pub fn get_connectors(&self) -> Vec<ConnectorId> ⓘ
Return vector of connector ids.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Resources
impl RefUnwindSafe for Resources
impl !Send for Resources
impl !Sync for Resources
impl Unpin for Resources
impl UnwindSafe for Resources
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