pub struct GpuLease {
pub gpu_index: u32,
pub vendor: GpuVendor,
/* private fields */
}Expand description
RAII guard returned by GpuPool::claim. The slot is released
(and the underlying semaphore permit dropped) when this value
is dropped — typically at the end of the variant’s encode task.
Fields§
§gpu_index: u32§vendor: GpuVendorTrait Implementations§
Auto Trait Implementations§
impl Freeze for GpuLease
impl RefUnwindSafe for GpuLease
impl Send for GpuLease
impl Sync for GpuLease
impl Unpin for GpuLease
impl UnsafeUnpin for GpuLease
impl UnwindSafe for GpuLease
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