pub enum PackingStrategy {
OnePerPackage,
PopularityBased {
max_layers: usize,
},
}Expand description
Strategy for grouping packages into OCI layers.
Layer order: most-stable (lowest in dependency graph) at index 0, most-volatile (entrypoint) at the top. Docker pulls layers in manifest order so stable-first minimises re-downloads across tool upgrades.
Variants§
OnePerPackage
Each package gets its own layer (default for small tool sets).
PopularityBased
Popularity-based packing when max_layers is exceeded.
Trait Implementations§
Source§impl Clone for PackingStrategy
impl Clone for PackingStrategy
Source§fn clone(&self) -> PackingStrategy
fn clone(&self) -> PackingStrategy
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 moreSource§impl Debug for PackingStrategy
impl Debug for PackingStrategy
Source§impl Default for PackingStrategy
impl Default for PackingStrategy
Source§fn default() -> PackingStrategy
fn default() -> PackingStrategy
Returns the “default value” for a type. Read more
Source§impl PartialEq for PackingStrategy
impl PartialEq for PackingStrategy
Source§fn eq(&self, other: &PackingStrategy) -> bool
fn eq(&self, other: &PackingStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PackingStrategy
impl StructuralPartialEq for PackingStrategy
Auto Trait Implementations§
impl Freeze for PackingStrategy
impl RefUnwindSafe for PackingStrategy
impl Send for PackingStrategy
impl Sync for PackingStrategy
impl Unpin for PackingStrategy
impl UnsafeUnpin for PackingStrategy
impl UnwindSafe for PackingStrategy
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§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.