pub struct QuarantinedAllocation {
pub identity: AllocationIdentity,
pub address: usize,
pub bytes: usize,
pub align: usize,
pub state: AllocationReleaseState,
pub reason: QuarantineReason,
pub retained_bytes: u64,
}Expand description
One piece of ownership the runtime kept instead of releasing.
Quarantined ownership stays observable through
crate::MechanismSnapshot and
crate::BindingRegistry::quarantined, and blocks mechanism removal. It is
cleared only by confirmed provider-context termination, which is the point
where the device state it refers to provably no longer exists.
Fields§
§identity: AllocationIdentity§address: usizeThe address that is still owned. Never dereferenced by this crate.
bytes: usize§align: usize§state: AllocationReleaseState§reason: QuarantineReason§retained_bytes: u64Trait Implementations§
Source§impl Clone for QuarantinedAllocation
impl Clone for QuarantinedAllocation
Source§fn clone(&self) -> QuarantinedAllocation
fn clone(&self) -> QuarantinedAllocation
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 QuarantinedAllocation
Source§impl Debug for QuarantinedAllocation
impl Debug for QuarantinedAllocation
impl Eq for QuarantinedAllocation
Source§impl Hash for QuarantinedAllocation
impl Hash for QuarantinedAllocation
Source§impl PartialEq for QuarantinedAllocation
impl PartialEq for QuarantinedAllocation
impl StructuralPartialEq for QuarantinedAllocation
Auto Trait Implementations§
impl Freeze for QuarantinedAllocation
impl RefUnwindSafe for QuarantinedAllocation
impl Send for QuarantinedAllocation
impl Sync for QuarantinedAllocation
impl Unpin for QuarantinedAllocation
impl UnsafeUnpin for QuarantinedAllocation
impl UnwindSafe for QuarantinedAllocation
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