pub struct RetainedBytes {
pub buffer_backing: u128,
pub program_resident: u128,
}Expand description
Exact retained bulk-storage charges represented by a device state graph.
The totals use u128 because a valid graph may contain up to u32::MAX objects, each carrying
a u64 charge. This keeps accounting exact even when the sum is intentionally rejected by a
u64 policy limit.
Fields§
§buffer_backing: u128§program_resident: u128Implementations§
Trait Implementations§
Source§impl Clone for RetainedBytes
impl Clone for RetainedBytes
Source§fn clone(&self) -> RetainedBytes
fn clone(&self) -> RetainedBytes
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 RetainedBytes
Source§impl Debug for RetainedBytes
impl Debug for RetainedBytes
Source§impl Default for RetainedBytes
impl Default for RetainedBytes
Source§fn default() -> RetainedBytes
fn default() -> RetainedBytes
Returns the “default value” for a type. Read more
impl Eq for RetainedBytes
Source§impl PartialEq for RetainedBytes
impl PartialEq for RetainedBytes
impl StructuralPartialEq for RetainedBytes
Auto Trait Implementations§
impl Freeze for RetainedBytes
impl RefUnwindSafe for RetainedBytes
impl Send for RetainedBytes
impl Sync for RetainedBytes
impl Unpin for RetainedBytes
impl UnsafeUnpin for RetainedBytes
impl UnwindSafe for RetainedBytes
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