pub struct WriteLock<'a, T> where
T: BufferContents + ?Sized + 'a, { /* 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> Deref for WriteLock<'a, T> where
T: BufferContents + ?Sized + 'a,
impl<'a, T> Deref for WriteLock<'a, T> where
T: BufferContents + ?Sized + 'a,
sourceimpl<'a, T> DerefMut for WriteLock<'a, T> where
T: BufferContents + ?Sized + 'a,
impl<'a, T> DerefMut for WriteLock<'a, T> where
T: BufferContents + ?Sized + 'a,
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for WriteLock<'a, T>
impl<'a, T: ?Sized> Send for WriteLock<'a, T>
impl<'a, T: ?Sized> Sync for WriteLock<'a, T>
impl<'a, T: ?Sized> Unpin for WriteLock<'a, T>
impl<'a, T> !UnwindSafe for WriteLock<'a, T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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