pub struct ResourcePoolOwnership<R>where
R: DeviceRuntime,{ /* private fields */ }Expand description
Ownership transferred out of core when normal cleanup cannot prove that buffers and their device-capacity claim are gone. Dropping this object is the durable owner’s explicit cleanup point.
Implementations§
Source§impl<R> ResourcePoolOwnership<R>where
R: DeviceRuntime,
impl<R> ResourcePoolOwnership<R>where
R: DeviceRuntime,
pub fn runtime(&self) -> &R
pub fn pool_identity(&self) -> &ResourcePoolIdentity
pub const fn reason(&self) -> ResourceOwnershipReason
pub fn abandon_signal(&self) -> Option<&ResourceAbandonSignal>
pub fn buffers(&self) -> &[ResourceOwnedBuffer<R::Buffer>]
pub fn claimed_bytes(&self) -> u64
Trait Implementations§
Source§impl<R> Drop for ResourcePoolOwnership<R>where
R: DeviceRuntime,
impl<R> Drop for ResourcePoolOwnership<R>where
R: DeviceRuntime,
Auto Trait Implementations§
impl<R> !RefUnwindSafe for ResourcePoolOwnership<R>
impl<R> !UnwindSafe for ResourcePoolOwnership<R>
impl<R> Freeze for ResourcePoolOwnership<R>
impl<R> Send for ResourcePoolOwnership<R>
impl<R> Sync for ResourcePoolOwnership<R>
impl<R> Unpin for ResourcePoolOwnership<R>
impl<R> UnsafeUnpin for ResourcePoolOwnership<R>
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