pub enum ArchivePolicyIssue {
PathIssue(ArchivePathIssue),
SymlinkNotAllowed,
EntryTooLarge {
size: u64,
max: u64,
},
TotalSizeTooLarge {
total: u64,
max: u64,
},
TooManyEntries {
entries: usize,
max: usize,
},
}Expand description
Policy violations detected for archive entries or entry lists.
Variants§
PathIssue(ArchivePathIssue)
The entry path violates the configured path policy.
SymlinkNotAllowed
Symbolic links are disallowed by the policy.
EntryTooLarge
A single entry is larger than the configured maximum.
TotalSizeTooLarge
Total known entry size is larger than the configured maximum.
Fields
TooManyEntries
Entry count is larger than the configured maximum.
Trait Implementations§
Source§impl Clone for ArchivePolicyIssue
impl Clone for ArchivePolicyIssue
Source§fn clone(&self) -> ArchivePolicyIssue
fn clone(&self) -> ArchivePolicyIssue
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 ArchivePolicyIssue
impl Debug for ArchivePolicyIssue
Source§impl Hash for ArchivePolicyIssue
impl Hash for ArchivePolicyIssue
Source§impl Ord for ArchivePolicyIssue
impl Ord for ArchivePolicyIssue
Source§fn cmp(&self, other: &ArchivePolicyIssue) -> Ordering
fn cmp(&self, other: &ArchivePolicyIssue) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ArchivePolicyIssue
impl PartialEq for ArchivePolicyIssue
Source§fn eq(&self, other: &ArchivePolicyIssue) -> bool
fn eq(&self, other: &ArchivePolicyIssue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ArchivePolicyIssue
impl PartialOrd for ArchivePolicyIssue
impl Copy for ArchivePolicyIssue
impl Eq for ArchivePolicyIssue
impl StructuralPartialEq for ArchivePolicyIssue
Auto Trait Implementations§
impl Freeze for ArchivePolicyIssue
impl RefUnwindSafe for ArchivePolicyIssue
impl Send for ArchivePolicyIssue
impl Sync for ArchivePolicyIssue
impl Unpin for ArchivePolicyIssue
impl UnsafeUnpin for ArchivePolicyIssue
impl UnwindSafe for ArchivePolicyIssue
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