pub struct DrmModeGetProperty {
pub prop_id: u32,
pub flags: u32,
pub name: [u8; 32],
/* private fields */
}Fields§
§prop_id: u32§flags: u32§name: [u8; 32]Implementations§
Source§impl DrmModeGetProperty
impl DrmModeGetProperty
Sourcepub unsafe fn set_values_ptr(&mut self, ptr: *mut u64, len: u32)
pub unsafe fn set_values_ptr(&mut self, ptr: *mut u64, len: u32)
Set the values_ptr and count_values fields.
§Safety
ptr must point to an array of u64 with at least length len, and
that pointer must remain valid throughout any subsequent ioctl calls
using this object.
pub fn clear_values_ptr(&mut self)
pub fn count_values(&self) -> u32
Sourcepub unsafe fn set_enum_blob_ptr(
&mut self,
ptr: *mut DrmModePropertyEnum,
len: u32,
)
pub unsafe fn set_enum_blob_ptr( &mut self, ptr: *mut DrmModePropertyEnum, len: u32, )
Set the values_ptr and count_values fields.
§Safety
ptr must point to an array of DrmModePropertyEnum with at least
length len, and that pointer must remain valid throughout any
subsequent ioctl calls using this object.
pub fn clear_enum_blob_ptr(&mut self)
pub fn count_enum_blobs(&self) -> u32
Trait Implementations§
Source§impl Clone for DrmModeGetProperty
impl Clone for DrmModeGetProperty
Source§fn clone(&self) -> DrmModeGetProperty
fn clone(&self) -> DrmModeGetProperty
Returns a duplicate 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 DrmModeGetProperty
impl Debug for DrmModeGetProperty
Source§impl Default for DrmModeGetProperty
The default value is the result of Self::zeroed.
impl Default for DrmModeGetProperty
The default value is the result of Self::zeroed.
Auto Trait Implementations§
impl Freeze for DrmModeGetProperty
impl RefUnwindSafe for DrmModeGetProperty
impl Send for DrmModeGetProperty
impl Sync for DrmModeGetProperty
impl Unpin for DrmModeGetProperty
impl UnwindSafe for DrmModeGetProperty
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