pub enum PullPolicy {
IfMissing,
Always,
Never,
}Expand description
Controls when the registry is contacted for manifest freshness.
Variants§
IfMissing
Use cached layers if complete, pull otherwise.
Always
Always fetch manifest from registry, even if cached. Reuses cached layers whose digests still match.
Never
Never contact registry. Error if image not fully cached locally.
Trait Implementations§
Source§impl Clone for PullPolicy
impl Clone for PullPolicy
Source§fn clone(&self) -> PullPolicy
fn clone(&self) -> PullPolicy
Returns a duplicate of the value. Read more
1.0.0 · 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 PullPolicy
impl Debug for PullPolicy
Source§impl Default for PullPolicy
impl Default for PullPolicy
Source§fn default() -> PullPolicy
fn default() -> PullPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PullPolicy
impl<'de> Deserialize<'de> for PullPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PullPolicy
impl PartialEq for PullPolicy
Source§impl Serialize for PullPolicy
impl Serialize for PullPolicy
impl Copy for PullPolicy
impl Eq for PullPolicy
impl StructuralPartialEq for PullPolicy
Auto Trait Implementations§
impl Freeze for PullPolicy
impl RefUnwindSafe for PullPolicy
impl Send for PullPolicy
impl Sync for PullPolicy
impl Unpin for PullPolicy
impl UnsafeUnpin for PullPolicy
impl UnwindSafe for PullPolicy
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