pub enum ExtractPolicyViolation {
NameRejected {
context: &'static str,
value: String,
},
SymbolicLink,
NativeSymlinkCreationUnsupported,
HardLink,
}Expand description
A valid member feature rejected by the selected extract::ExtractPolicy.
Variants§
NameRejected
An effective member name or link target was rejected.
Fields
SymbolicLink
A symbolic-link member appeared when links are forbidden.
NativeSymlinkCreationUnsupported
A symbolic-link member requires native creation on an unsupported platform.
HardLink
A hard-link member appeared when links are forbidden.
Trait Implementations§
Source§impl Clone for ExtractPolicyViolation
impl Clone for ExtractPolicyViolation
Source§fn clone(&self) -> ExtractPolicyViolation
fn clone(&self) -> ExtractPolicyViolation
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 ExtractPolicyViolation
impl Debug for ExtractPolicyViolation
Source§impl Display for ExtractPolicyViolation
impl Display for ExtractPolicyViolation
impl Eq for ExtractPolicyViolation
Source§impl Error for ExtractPolicyViolation
impl Error for ExtractPolicyViolation
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 ExtractPolicyViolation
impl PartialEq for ExtractPolicyViolation
Source§fn eq(&self, other: &ExtractPolicyViolation) -> bool
fn eq(&self, other: &ExtractPolicyViolation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExtractPolicyViolation
Auto Trait Implementations§
impl Freeze for ExtractPolicyViolation
impl RefUnwindSafe for ExtractPolicyViolation
impl Send for ExtractPolicyViolation
impl Sync for ExtractPolicyViolation
impl Unpin for ExtractPolicyViolation
impl UnsafeUnpin for ExtractPolicyViolation
impl UnwindSafe for ExtractPolicyViolation
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