pub struct DmaBufPlane {
pub fd: Arc<OwnedFd>,
pub offset: u64,
pub stride: u32,
}Expand description
One plane of a dma-buf: a descriptor, its offset into the buffer, and its row stride.
The descriptor is shared (Arc) so a handle clones without duplicating descriptors: the producer
keeps its own reference, and the renderer duplicates in the kernel when it imports.
Fields§
§fd: Arc<OwnedFd>The plane’s file descriptor.
offset: u64The plane’s offset within the buffer, in bytes.
stride: u32The plane’s row stride, in bytes.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DmaBufPlane
impl RefUnwindSafe for DmaBufPlane
impl Send for DmaBufPlane
impl Sync for DmaBufPlane
impl Unpin for DmaBufPlane
impl UnsafeUnpin for DmaBufPlane
impl UnwindSafe for DmaBufPlane
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.