#[non_exhaustive]pub enum RemovalOutcome {
Removed,
Gone,
Moved {
now: String,
},
Failed {
reason: String,
},
NotRecorded,
}Expand description
How the removal of one recorded download went.
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.
Removed
Removed, and its record forgotten.
Gone
Gone already (removed outside the runner): its record forgotten.
Moved
The image’s reference now stands for another image (pulled again, retagged): nothing removed, the record forgotten, the reference no longer the runner’s.
Failed
Its tool refused (an image a container uses, a box a machine uses) or failed: kept, and its record too.
NotRecorded
No download of that id is recorded.
Trait Implementations§
Source§impl Clone for RemovalOutcome
impl Clone for RemovalOutcome
Source§impl Debug for RemovalOutcome
impl Debug for RemovalOutcome
Source§impl<'de> Deserialize<'de> for RemovalOutcome
impl<'de> Deserialize<'de> for RemovalOutcome
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 RemovalOutcome
Source§impl PartialEq for RemovalOutcome
impl PartialEq for RemovalOutcome
Source§impl Serialize for RemovalOutcome
impl Serialize for RemovalOutcome
impl StructuralPartialEq for RemovalOutcome
Auto Trait Implementations§
impl Forget for RemovalOutcome
impl Freeze for RemovalOutcome
impl Move for RemovalOutcome
impl RefUnwindSafe for RemovalOutcome
impl Send for RemovalOutcome
impl Sync for RemovalOutcome
impl Unpin for RemovalOutcome
impl UnsafeUnpin for RemovalOutcome
impl UnwindSafe for RemovalOutcome
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.