pub struct ResidualOwnership {
pub state: AllocationReleaseState,
pub reason: QuarantineReason,
pub retained_bytes: u64,
pub address: usize,
pub align: usize,
}Expand description
What the runtime still owns after a non-complete release.
Fields§
§state: AllocationReleaseStateThe state the residual ownership is parked in.
reason: QuarantineReason§retained_bytes: u64Bytes still owned by the runtime. For a fully unreleased allocation this equals the allocation size.
address: usizeThe address the residual ownership refers to. Kept so a manager can reconcile against provider-side records; it is never dereferenced here.
align: usizeTrait Implementations§
Source§impl Clone for ResidualOwnership
impl Clone for ResidualOwnership
Source§fn clone(&self) -> ResidualOwnership
fn clone(&self) -> ResidualOwnership
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 ResidualOwnership
Source§impl Debug for ResidualOwnership
impl Debug for ResidualOwnership
impl Eq for ResidualOwnership
Source§impl Hash for ResidualOwnership
impl Hash for ResidualOwnership
Source§impl PartialEq for ResidualOwnership
impl PartialEq for ResidualOwnership
impl StructuralPartialEq for ResidualOwnership
Auto Trait Implementations§
impl Freeze for ResidualOwnership
impl RefUnwindSafe for ResidualOwnership
impl Send for ResidualOwnership
impl Sync for ResidualOwnership
impl Unpin for ResidualOwnership
impl UnsafeUnpin for ResidualOwnership
impl UnwindSafe for ResidualOwnership
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