#[non_exhaustive]pub enum SecurityViolationSubCode {
Show 17 variants
PathName,
PathDepth,
LinkTarget,
LinkPolicy,
ExistingSymlink,
EntryType,
RootEntry,
Encrypted,
CompressionMethod,
SolidArchive,
DeclaredSize,
ConcurrentChange,
TarMetadata,
TarTrailer,
Platform,
OutputConflict,
SourcePath,
}Expand description
Finer classification of an ErrorCode::SecurityViolation error.
§Examples
use exarch_core::SecurityViolationSubCode;
assert_eq!(SecurityViolationSubCode::TarTrailer.as_str(), "TAR_TRAILER");
assert_eq!(SecurityViolationSubCode::PathName.as_str(), "PATH_NAME");Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
PathName
An entry or argument path is refused by name rules.
PathDepth
A path or symlink target is deeper than the limit.
LinkTarget
The target of a symlink or hardlink cannot be accepted.
LinkPolicy
The kind of link is disabled by the configuration.
ExistingSymlink
A symlink already at or above the entry’s location blocks it.
EntryType
An entry type exarch does not extract.
RootEntry
A root entry that is not a directory.
Encrypted
An encrypted archive or entry.
CompressionMethod
A compression method exarch does not read.
SolidArchive
A solid archive while solid archives are disabled.
DeclaredSize
A stream disagrees with the size its archive declared.
ConcurrentChange
A file changed while it was being copied.
TarMetadata
A TAR metadata or synthetic-byte budget was exceeded.
TarTrailer
An over-cap tail after the TAR end-of-archive marker.
Platform
The host platform cannot do what the entry asks.
OutputConflict
An existing output conflicts with an entry.
SourcePath
A source path to archive lies outside the archive root.
Implementations§
Trait Implementations§
Source§impl Clone for SecurityViolationSubCode
impl Clone for SecurityViolationSubCode
Source§impl ClosedEnum for SecurityViolationSubCode
impl ClosedEnum for SecurityViolationSubCode
impl Copy for SecurityViolationSubCode
Source§impl Debug for SecurityViolationSubCode
impl Debug for SecurityViolationSubCode
Source§impl Display for SecurityViolationSubCode
impl Display for SecurityViolationSubCode
impl Eq for SecurityViolationSubCode
Source§impl Hash for SecurityViolationSubCode
impl Hash for SecurityViolationSubCode
Source§impl PartialEq for SecurityViolationSubCode
impl PartialEq for SecurityViolationSubCode
impl StructuralPartialEq for SecurityViolationSubCode
Auto Trait Implementations§
impl Freeze for SecurityViolationSubCode
impl RefUnwindSafe for SecurityViolationSubCode
impl Send for SecurityViolationSubCode
impl Sync for SecurityViolationSubCode
impl Unpin for SecurityViolationSubCode
impl UnsafeUnpin for SecurityViolationSubCode
impl UnwindSafe for SecurityViolationSubCode
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
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
key and return true if they are equal.