pub enum DecodePolicyViolation {
GnuArchive,
GlobalPaxExtension,
PaxVendorExtension {
vendor: String,
name: String,
},
NonUtf8PaxVendorValue {
vendor: String,
name: String,
},
DuplicatePaxRecord {
keyword: String,
},
GlobalPaxMemberMetadata {
keyword: &'static str,
},
}Expand description
A tar feature accepted by framing but rejected by the selected DecodePolicy.
Variants§
GnuArchive
A GNU-family frame appeared when only POSIX-pax decoding is allowed.
GlobalPaxExtension
A global POSIX pax extended header appeared when it is forbidden.
PaxVendorExtension
A vendor-namespaced POSIX pax record appeared.
NonUtf8PaxVendorValue
A vendor-namespaced POSIX pax record contains a non-UTF-8 value.
DuplicatePaxRecord
One POSIX pax extended header repeats the same logical keyword.
GlobalPaxMemberMetadata
A global POSIX pax header supplies per-member identity or framing data.
Trait Implementations§
Source§impl Clone for DecodePolicyViolation
impl Clone for DecodePolicyViolation
Source§fn clone(&self) -> DecodePolicyViolation
fn clone(&self) -> DecodePolicyViolation
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 DecodePolicyViolation
impl Debug for DecodePolicyViolation
Source§impl Display for DecodePolicyViolation
impl Display for DecodePolicyViolation
impl Eq for DecodePolicyViolation
Source§impl Error for DecodePolicyViolation
impl Error for DecodePolicyViolation
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for DecodePolicyViolation
impl PartialEq for DecodePolicyViolation
Source§fn eq(&self, other: &DecodePolicyViolation) -> bool
fn eq(&self, other: &DecodePolicyViolation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DecodePolicyViolation
Auto Trait Implementations§
impl Freeze for DecodePolicyViolation
impl RefUnwindSafe for DecodePolicyViolation
impl Send for DecodePolicyViolation
impl Sync for DecodePolicyViolation
impl Unpin for DecodePolicyViolation
impl UnsafeUnpin for DecodePolicyViolation
impl UnwindSafe for DecodePolicyViolation
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