pub enum ArchivePathIssue {
AbsolutePath,
ParentTraversal,
EmptyComponent,
WindowsDrivePrefix,
WindowsUncPrefix,
SuspiciousSeparator,
}Expand description
Issues found in an archive-internal path.
Variants§
AbsolutePath
The path is absolute or root-anchored.
ParentTraversal
The path contains a parent directory traversal component.
EmptyComponent
The path is empty or contains an empty component.
WindowsDrivePrefix
The path starts with a Windows drive prefix such as C:.
WindowsUncPrefix
The path starts with a Windows UNC prefix.
SuspiciousSeparator
The path contains a separator that is suspicious in archive-internal paths.
Implementations§
Trait Implementations§
Source§impl Clone for ArchivePathIssue
impl Clone for ArchivePathIssue
Source§fn clone(&self) -> ArchivePathIssue
fn clone(&self) -> ArchivePathIssue
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 ArchivePathIssue
impl Debug for ArchivePathIssue
Source§impl Hash for ArchivePathIssue
impl Hash for ArchivePathIssue
Source§impl Ord for ArchivePathIssue
impl Ord for ArchivePathIssue
Source§fn cmp(&self, other: &ArchivePathIssue) -> Ordering
fn cmp(&self, other: &ArchivePathIssue) -> 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 ArchivePathIssue
impl PartialEq for ArchivePathIssue
Source§fn eq(&self, other: &ArchivePathIssue) -> bool
fn eq(&self, other: &ArchivePathIssue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ArchivePathIssue
impl PartialOrd for ArchivePathIssue
impl Copy for ArchivePathIssue
impl Eq for ArchivePathIssue
impl StructuralPartialEq for ArchivePathIssue
Auto Trait Implementations§
impl Freeze for ArchivePathIssue
impl RefUnwindSafe for ArchivePathIssue
impl Send for ArchivePathIssue
impl Sync for ArchivePathIssue
impl Unpin for ArchivePathIssue
impl UnsafeUnpin for ArchivePathIssue
impl UnwindSafe for ArchivePathIssue
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