pub struct DmaBufParams {
pub id: u32,
pub width: u32,
pub height: u32,
pub format: u32,
pub flags: u32,
pub planes: Vec<DmaBufPlane>,
}Expand description
DMA-BUF parameter builder (corresponds to zwp_linux_buffer_params_v1).
Accumulates plane descriptions before buffer creation.
Fields§
§id: u32Params object ID
width: u32Requested buffer width in pixels
height: u32Requested buffer height in pixels
format: u32DRM fourcc format code
flags: u32Buffer creation flags (Y_INVERT, INTERLACED, BOTTOM_FIRST)
planes: Vec<DmaBufPlane>Planes added so far (up to MAX_PLANES)
Implementations§
Source§impl DmaBufParams
impl DmaBufParams
Trait Implementations§
Source§impl Clone for DmaBufParams
impl Clone for DmaBufParams
Source§fn clone(&self) -> DmaBufParams
fn clone(&self) -> DmaBufParams
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DmaBufParams
impl RefUnwindSafe for DmaBufParams
impl Send for DmaBufParams
impl Sync for DmaBufParams
impl Unpin for DmaBufParams
impl UnwindSafe for DmaBufParams
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)