pub struct Objects {
pub expected: usize,
pub present: usize,
}Expand description
How much of an image’s pulled content is on disk.
Manifest, config and one entry per unique layer digest — the objects a pull produces and a run consumes. Deliberately not counting the extracted trees, the disk image or the base rootfs: those are built lazily on first run and are a cache below this cache, so an image that has only ever been pulled is complete without them.
The unit matches what issue #433’s hand verification counted: 15/15 for
semgrep (one manifest, one config, thirteen layers) and 3/3 for debian.
Fields§
§expected: usizeHow many objects the index says this image has.
present: usizeHow many of them are on disk.
Implementations§
Trait Implementations§
impl Copy for Objects
impl Eq for Objects
impl StructuralPartialEq for Objects
Auto Trait Implementations§
impl Freeze for Objects
impl RefUnwindSafe for Objects
impl Send for Objects
impl Sync for Objects
impl Unpin for Objects
impl UnsafeUnpin for Objects
impl UnwindSafe for Objects
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.