struct SnatchableResourceGuard<Resource, HalType>where
Resource: RawResourceAccess,{
resource: Arc<Resource>,
snatch_lock_rank_data: ManuallyDrop<RankData>,
ptr: *const HalType,
}
Expand description
A guard which holds alive a snatchable wgpu-core resource and dereferences to the Hal type.
Fields§
§resource: Arc<Resource>
§snatch_lock_rank_data: ManuallyDrop<RankData>
§ptr: *const HalType
Implementations§
Source§impl<Resource, HalType> SnatchableResourceGuard<Resource, HalType>where
Resource: RawResourceAccess,
HalType: 'static,
impl<Resource, HalType> SnatchableResourceGuard<Resource, HalType>where
Resource: RawResourceAccess,
HalType: 'static,
Trait Implementations§
Source§impl<Resource, HalType> Deref for SnatchableResourceGuard<Resource, HalType>where
Resource: RawResourceAccess,
impl<Resource, HalType> Deref for SnatchableResourceGuard<Resource, HalType>where
Resource: RawResourceAccess,
Source§impl<Resource, HalType> Drop for SnatchableResourceGuard<Resource, HalType>where
Resource: RawResourceAccess,
impl<Resource, HalType> Drop for SnatchableResourceGuard<Resource, HalType>where
Resource: RawResourceAccess,
impl<Resource, HalType> Send for SnatchableResourceGuard<Resource, HalType>
impl<Resource, HalType> Sync for SnatchableResourceGuard<Resource, HalType>
Auto Trait Implementations§
impl<Resource, HalType> Freeze for SnatchableResourceGuard<Resource, HalType>
impl<Resource, HalType> RefUnwindSafe for SnatchableResourceGuard<Resource, HalType>where
HalType: RefUnwindSafe,
Resource: RefUnwindSafe,
impl<Resource, HalType> Unpin for SnatchableResourceGuard<Resource, HalType>
impl<Resource, HalType> UnwindSafe for SnatchableResourceGuard<Resource, HalType>where
Resource: RefUnwindSafe,
HalType: RefUnwindSafe,
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