pub struct ResourceHandles {
pub fbs: Vec<Handle>,
pub crtcs: Vec<Handle>,
pub connectors: Vec<Handle>,
pub encoders: Vec<Handle>,
/* private fields */
}
Expand description
The set of ResourceHandles
that a
Device
exposes. Excluding Plane resources.
Fields§
§fbs: Vec<Handle>
Set of framebuffer::Handle
crtcs: Vec<Handle>
Set of crtc::Handle
connectors: Vec<Handle>
Set of connector::Handle
encoders: Vec<Handle>
Set of encoder::Handle
Implementations§
source§impl ResourceHandles
impl ResourceHandles
sourcepub fn connectors(&self) -> &[Handle]
pub fn connectors(&self) -> &[Handle]
Returns the set of connector::Handle
sourcepub fn encoders(&self) -> &[Handle]
pub fn encoders(&self) -> &[Handle]
Returns the set of encoder::Handle
sourcepub fn crtcs(&self) -> &[Handle]
pub fn crtcs(&self) -> &[Handle]
Returns the set of crtc::Handle
sourcepub fn framebuffers(&self) -> &[Handle]
pub fn framebuffers(&self) -> &[Handle]
Returns the set of framebuffer::Handle
sourcepub fn supported_fb_width(&self) -> impl RangeBounds<u32>
pub fn supported_fb_width(&self) -> impl RangeBounds<u32>
Returns the supported minimum and maximum width for framebuffers
sourcepub fn supported_fb_height(&self) -> impl RangeBounds<u32>
pub fn supported_fb_height(&self) -> impl RangeBounds<u32>
Returns the supported minimum and maximum height for framebuffers
sourcepub fn filter_crtcs(&self, filter: CrtcListFilter) -> Vec<Handle>
pub fn filter_crtcs(&self, filter: CrtcListFilter) -> Vec<Handle>
Apply a filter the all crtcs of these resources, resulting in a list of crtcs allowed.
Trait Implementations§
source§impl Clone for ResourceHandles
impl Clone for ResourceHandles
source§fn clone(&self) -> ResourceHandles
fn clone(&self) -> ResourceHandles
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ResourceHandles
impl Debug for ResourceHandles
source§impl Hash for ResourceHandles
impl Hash for ResourceHandles
source§impl PartialEq for ResourceHandles
impl PartialEq for ResourceHandles
impl Eq for ResourceHandles
impl StructuralPartialEq for ResourceHandles
Auto Trait Implementations§
impl Freeze for ResourceHandles
impl RefUnwindSafe for ResourceHandles
impl Send for ResourceHandles
impl Sync for ResourceHandles
impl Unpin for ResourceHandles
impl UnwindSafe for ResourceHandles
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)