pub struct ReadLock<'a, T, A>where
T: BufferContents + ?Sized + 'a,
A: MemoryPoolAlloc,{ /* private fields */ }
Expand description
Object that can be used to read or write the content of a CpuAccessibleBuffer
.
Note that this object holds a rwlock read guard on the chunk. If another thread tries to access this buffer’s content or tries to submit a GPU command that uses this buffer, it will block.
Trait Implementations
sourceimpl<'a, T: Debug, A: Debug> Debug for ReadLock<'a, T, A>where
T: BufferContents + ?Sized + 'a,
A: MemoryPoolAlloc,
impl<'a, T: Debug, A: Debug> Debug for ReadLock<'a, T, A>where
T: BufferContents + ?Sized + 'a,
A: MemoryPoolAlloc,
sourceimpl<'a, T, A> Deref for ReadLock<'a, T, A>where
T: BufferContents + ?Sized + 'a,
A: MemoryPoolAlloc,
impl<'a, T, A> Deref for ReadLock<'a, T, A>where
T: BufferContents + ?Sized + 'a,
A: MemoryPoolAlloc,
sourceimpl<'a, T, A> Drop for ReadLock<'a, T, A>where
T: BufferContents + ?Sized + 'a,
A: MemoryPoolAlloc,
impl<'a, T, A> Drop for ReadLock<'a, T, A>where
T: BufferContents + ?Sized + 'a,
A: MemoryPoolAlloc,
Auto Trait Implementations
impl<'a, T, A> !RefUnwindSafe for ReadLock<'a, T, A>
impl<'a, T: ?Sized, A> Send for ReadLock<'a, T, A>
impl<'a, T: ?Sized, A> Sync for ReadLock<'a, T, A>
impl<'a, T: ?Sized, A> Unpin for ReadLock<'a, T, A>
impl<'a, T, A> !UnwindSafe for ReadLock<'a, T, A>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more