pub struct ReleaseAccounting {
pub allocation_bytes: u64,
pub unmapped_bytes: u64,
}Expand description
Byte accounting for one release attempt.
unmapped_bytes is the mapped-attribution refund observed by the allocator.
Zero is a valid complete result: eager allocators have no mapped
attribution, and a virtual allocation with nothing committed unmaps nothing.
Zero is never an error proxy; failure is expressed by the outcome variant.
Fields§
§allocation_bytes: u64The whole-allocation size the release was prepared for.
unmapped_bytes: u64Bytes whose global mapping reference transitioned to unmapped.
Implementations§
Trait Implementations§
Source§impl Clone for ReleaseAccounting
impl Clone for ReleaseAccounting
Source§fn clone(&self) -> ReleaseAccounting
fn clone(&self) -> ReleaseAccounting
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 ReleaseAccounting
Source§impl Debug for ReleaseAccounting
impl Debug for ReleaseAccounting
Source§impl Default for ReleaseAccounting
impl Default for ReleaseAccounting
Source§fn default() -> ReleaseAccounting
fn default() -> ReleaseAccounting
Returns the “default value” for a type. Read more
impl Eq for ReleaseAccounting
Source§impl Hash for ReleaseAccounting
impl Hash for ReleaseAccounting
Source§impl PartialEq for ReleaseAccounting
impl PartialEq for ReleaseAccounting
impl StructuralPartialEq for ReleaseAccounting
Auto Trait Implementations§
impl Freeze for ReleaseAccounting
impl RefUnwindSafe for ReleaseAccounting
impl Send for ReleaseAccounting
impl Sync for ReleaseAccounting
impl Unpin for ReleaseAccounting
impl UnsafeUnpin for ReleaseAccounting
impl UnwindSafe for ReleaseAccounting
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