pub struct DmaBufProtected(Arc<RwLock<DmaBuf>>);
Expand description
A DMA-BUF buffer which is handed out to the user as if owned, but cannot be accessed while it’s enqueued at the device for writing.
Watch out for deadlocks!
Tuple Fields§
§0: Arc<RwLock<DmaBuf>>
Trait Implementations§
source§impl Clone for DmaBufProtected
impl Clone for DmaBufProtected
source§fn clone(&self) -> DmaBufProtected
fn clone(&self) -> DmaBufProtected
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 DmaBufProtected
impl Debug for DmaBufProtected
Auto Trait Implementations§
impl Freeze for DmaBufProtected
impl !RefUnwindSafe for DmaBufProtected
impl Send for DmaBufProtected
impl Sync for DmaBufProtected
impl Unpin for DmaBufProtected
impl !UnwindSafe for DmaBufProtected
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
)