pub struct LockedBuffer<T> {
id: *mut T,
buf: Option<ArcRwLockWriteGuard<RawRwLock, T>>,
}
Fields§
§id: *mut T
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, T>>
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<T> Debug for LockedBuffer<T>
impl<T> Debug for LockedBuffer<T>
Auto Trait Implementations§
impl<T> Freeze for LockedBuffer<T>
impl<T> !RefUnwindSafe for LockedBuffer<T>
impl<T> !Send for LockedBuffer<T>
impl<T> !Sync for LockedBuffer<T>
impl<T> Unpin for LockedBuffer<T>
impl<T> !UnwindSafe for LockedBuffer<T>
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