pub struct ReadLock<'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 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
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for ReadLock<'a, T>
impl<'a, T: ?Sized> Send for ReadLock<'a, T>
impl<'a, T: ?Sized> Sync for ReadLock<'a, T>
impl<'a, T: ?Sized> Unpin for ReadLock<'a, T>
impl<'a, T> !UnwindSafe for ReadLock<'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