pub struct ImageBytes {
pub metadata: u64,
pub layers: u64,
pub extracted: u64,
pub disk_image: u64,
pub base_disk: u64,
pub total: u64,
pub exclusive: u64,
}Expand description
One image’s byte accounting.
total is everything the image references; exclusive is what dropping this
image alone would free. They differ exactly when another cached image shares
a blob, which is the case the set difference exists for — and reporting only
total would promise bytes back that a shared layer keeps.
Fields§
§metadata: u64The manifest and config JSON.
layers: u64The compressed layer tarballs under images/layers/.
extracted: u64The unpacked layer trees under images/extracted/.
disk_image: u64The ext4 disk image built from the layer stack, if one has been built.
base_disk: u64The guest rootfs base built from that disk image, if one has been built.
total: u64Everything above.
exclusive: u64What dropping this image alone would actually free — total minus every
byte another cached image also references.
Trait Implementations§
Source§impl Clone for ImageBytes
impl Clone for ImageBytes
Source§fn clone(&self) -> ImageBytes
fn clone(&self) -> ImageBytes
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 ImageBytes
Source§impl Debug for ImageBytes
impl Debug for ImageBytes
Source§impl Default for ImageBytes
impl Default for ImageBytes
Source§fn default() -> ImageBytes
fn default() -> ImageBytes
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ImageBytes
impl RefUnwindSafe for ImageBytes
impl Send for ImageBytes
impl Sync for ImageBytes
impl Unpin for ImageBytes
impl UnsafeUnpin for ImageBytes
impl UnwindSafe for ImageBytes
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