pub enum PullPolicy {
IfMissing,
Always,
Never,
}Expand description
Controls when an OCI registry is contacted for manifest freshness.
Variants§
IfMissing
Use cached layers if complete, pull otherwise.
Always
Always fetch the manifest from the registry, reusing cached layers whose digests still match.
Never
Never contact the registry. Error if the image is not fully cached locally.
Trait Implementations§
Source§impl Clone for PullPolicy
impl Clone for PullPolicy
impl Copy for PullPolicy
Source§impl Debug for PullPolicy
impl Debug for PullPolicy
Source§impl Default for PullPolicy
impl Default for PullPolicy
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
impl Eq for PullPolicy
Source§impl From<CloudPullPolicy> for PullPolicy
impl From<CloudPullPolicy> for PullPolicy
Source§fn from(policy: CloudPullPolicy) -> Self
fn from(policy: CloudPullPolicy) -> Self
Converts to this type from the input type.
Source§impl From<PullPolicy> for CloudPullPolicy
impl From<PullPolicy> for CloudPullPolicy
Source§fn from(policy: PullPolicy) -> Self
fn from(policy: PullPolicy) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PullPolicy
impl PartialEq for PullPolicy
Source§impl Serialize for PullPolicy
impl Serialize 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