#[non_exhaustive]pub enum PullPolicy {
Always,
Missing,
Never,
IfNotPresent,
Build,
Daily,
Weekly,
Every(ProtectedString),
Raw(ProtectedString),
}Expand description
Source-independent image pull intent.
Variants beyond the shared policies intentionally retain source-native behavior for a target adapter to classify rather than silently reducing it to a different policy.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Always
Always acquire the image before starting.
Missing
Acquire the image only when it is absent locally.
Never
Never acquire the image automatically.
IfNotPresent
A source-specific spelling with semantics similar to Self::Missing.
Build
Build an image instead of pulling it.
Daily
Refresh the image daily.
Weekly
Refresh the image weekly.
Every(ProtectedString)
Refresh using a source-native interval spelling.
Raw(ProtectedString)
Retain any other target-native policy spelling.
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 (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 PullPolicy
impl Debug for PullPolicy
impl Eq for PullPolicy
Source§impl PartialEq for PullPolicy
impl PartialEq 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