pub struct MechanismSnapshot {
pub identity: MechanismIdentity,
pub device: DeviceKey,
pub provider_context: ProviderContextIdentity,
pub authority: AuthorityIdentity,
pub coherence: MechanismCoherence,
pub lifecycle: MechanismLifecycle,
pub live_allocations: usize,
pub active_operations: usize,
pub queued_releases: usize,
pub quarantined_allocations: usize,
pub quarantined_bytes: u64,
}Expand description
Read-only lifecycle information. Taking a snapshot never invokes a provider.
Fields§
§identity: MechanismIdentity§device: DeviceKey§provider_context: ProviderContextIdentity§coherence: MechanismCoherence§lifecycle: MechanismLifecycle§live_allocations: usize§active_operations: usize§queued_releases: usizeAllocations whose live record was retired into a prepared release that
has not settled yet. These are AllocationReleaseState::Queued.
quarantined_allocations: usizeAllocations whose ownership was retained instead of released.
quarantined_bytes: u64Bytes still owned by quarantined ownership.
Implementations§
Source§impl MechanismSnapshot
impl MechanismSnapshot
Sourcepub const fn retains_ownership(&self) -> bool
pub const fn retains_ownership(&self) -> bool
Whether any ownership is still outstanding in any non-terminal or retained state. Removal is unsafe while this is true.
Trait Implementations§
Source§impl Clone for MechanismSnapshot
impl Clone for MechanismSnapshot
Source§fn clone(&self) -> MechanismSnapshot
fn clone(&self) -> MechanismSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MechanismSnapshot
Source§impl Debug for MechanismSnapshot
impl Debug for MechanismSnapshot
impl Eq for MechanismSnapshot
Source§impl PartialEq for MechanismSnapshot
impl PartialEq for MechanismSnapshot
impl StructuralPartialEq for MechanismSnapshot
Auto Trait Implementations§
impl Freeze for MechanismSnapshot
impl RefUnwindSafe for MechanismSnapshot
impl Send for MechanismSnapshot
impl Sync for MechanismSnapshot
impl Unpin for MechanismSnapshot
impl UnsafeUnpin for MechanismSnapshot
impl UnwindSafe for MechanismSnapshot
Blanket Implementations§
impl<T> BindingResource for T
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