Struct nvidia_video_codec_sdk::safe::BufferLock
source · pub struct BufferLock<'a, 'b> { /* private fields */ }
Expand description
An RAII lock on the input buffer.
This type is created via Buffer::lock
or Buffer::try_lock
.
The purpose of this type is similar to std::sync::MutexGuard
-
it automatically unlocks the buffer then the lock goes out of scope.
Implementations§
source§impl BufferLock<'_, '_>
impl BufferLock<'_, '_>
Trait Implementations§
source§impl<'a, 'b> Debug for BufferLock<'a, 'b>
impl<'a, 'b> Debug for BufferLock<'a, 'b>
Auto Trait Implementations§
impl<'a, 'b> RefUnwindSafe for BufferLock<'a, 'b>
impl<'a, 'b> !Send for BufferLock<'a, 'b>
impl<'a, 'b> !Sync for BufferLock<'a, 'b>
impl<'a, 'b> Unpin for BufferLock<'a, 'b>
impl<'a, 'b> UnwindSafe for BufferLock<'a, 'b>
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