pub struct EntryDmaBufProtected {
id: *mut DmaBuf,
buf: Option<ArcRwLockWriteGuard<RawRwLock, DmaBuf>>,
}
Fields§
§id: *mut DmaBuf
This serves as a stable identifier of a buffer corresponding to this slot, meaning a buffer with this ID has the same index known by the kernel and the same device.
buf: Option<ArcRwLockWriteGuard<RawRwLock, DmaBuf>>
The buffer which may be handed out to the user after it’s ready. RwLock locked for writing ensures no other reference can try to use it while it’s waiting to be filled.
Trait Implementations§
source§impl Debug for EntryDmaBufProtected
impl Debug for EntryDmaBufProtected
source§impl EntryBuffer for EntryDmaBufProtected
impl EntryBuffer for EntryDmaBufProtected
fn from_owned_fd(fd: OwnedFd) -> Self
Auto Trait Implementations§
impl Freeze for EntryDmaBufProtected
impl !RefUnwindSafe for EntryDmaBufProtected
impl !Send for EntryDmaBufProtected
impl !Sync for EntryDmaBufProtected
impl Unpin for EntryDmaBufProtected
impl !UnwindSafe for EntryDmaBufProtected
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