#[non_exhaustive]pub enum ExtractionWarning {
AntiItemsSkipped {
count: u64,
},
BackupCleanupFailed {
path: PathBuf,
identity_unverified: bool,
error: String,
},
}Expand description
A condition of an extraction worth surfacing that is not a skipped entry.
§Examples
use exarch_core::ExtractionWarning;
let warning = ExtractionWarning::AntiItemsSkipped { count: 1 };
assert_eq!(
warning.to_string(),
"skipped 1 7z anti-item (deletion markers are not applied)"
);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.
AntiItemsSkipped
7z anti-items, which mark deletions in an update archive, were not applied.
BackupCleanupFailed
The backup of the original destination, kept for an atomic replacement, could not be removed and must be cleaned up manually.
Trait Implementations§
Source§impl Clone for ExtractionWarning
impl Clone for ExtractionWarning
Source§impl Debug for ExtractionWarning
impl Debug for ExtractionWarning
Source§impl Display for ExtractionWarning
impl Display for ExtractionWarning
impl Eq for ExtractionWarning
Source§impl PartialEq for ExtractionWarning
impl PartialEq for ExtractionWarning
impl StructuralPartialEq for ExtractionWarning
Auto Trait Implementations§
impl Freeze for ExtractionWarning
impl RefUnwindSafe for ExtractionWarning
impl Send for ExtractionWarning
impl Sync for ExtractionWarning
impl Unpin for ExtractionWarning
impl UnsafeUnpin for ExtractionWarning
impl UnwindSafe for ExtractionWarning
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.