pub struct WriteLock<'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 write 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 WriteLock<'a, T, A>where
T: BufferContents + ?Sized + 'a,
A: MemoryPoolAlloc,
impl<'a, T: Debug, A: Debug> Debug for WriteLock<'a, T, A>where
T: BufferContents + ?Sized + 'a,
A: MemoryPoolAlloc,
sourceimpl<'a, T, A> Deref for WriteLock<'a, T, A>where
T: BufferContents + ?Sized + 'a,
A: MemoryPoolAlloc,
impl<'a, T, A> Deref for WriteLock<'a, T, A>where
T: BufferContents + ?Sized + 'a,
A: MemoryPoolAlloc,
sourceimpl<'a, T, A> DerefMut for WriteLock<'a, T, A>where
T: BufferContents + ?Sized + 'a,
A: MemoryPoolAlloc,
impl<'a, T, A> DerefMut for WriteLock<'a, T, A>where
T: BufferContents + ?Sized + 'a,
A: MemoryPoolAlloc,
sourceimpl<'a, T, A> Drop for WriteLock<'a, T, A>where
T: BufferContents + ?Sized + 'a,
A: MemoryPoolAlloc,
impl<'a, T, A> Drop for WriteLock<'a, T, A>where
T: BufferContents + ?Sized + 'a,
A: MemoryPoolAlloc,
Auto Trait Implementations
impl<'a, T, A> !RefUnwindSafe for WriteLock<'a, T, A>
impl<'a, T: ?Sized, A> Send for WriteLock<'a, T, A>
impl<'a, T: ?Sized, A> Sync for WriteLock<'a, T, A>
impl<'a, T: ?Sized, A> Unpin for WriteLock<'a, T, A>
impl<'a, T, A> !UnwindSafe for WriteLock<'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