pub enum TraversalError {
InvalidArchivePath {
path: PathBuf,
reason: &'static str,
},
NameRejected {
context: &'static str,
value: String,
},
NonUtf8SourcePath {
path: PathBuf,
},
NonUtf8LinkTarget {
path: PathBuf,
},
SourceNotDirectory {
path: PathBuf,
},
SymbolicLinkRejected {
path: PathBuf,
},
UnsupportedFilesystemType {
path: PathBuf,
},
Filesystem {
operation: &'static str,
path: PathBuf,
source: Error,
},
BlockingTask(JoinError),
}Expand description
A failure while traversing a recursive archive source.
Variants§
InvalidArchivePath
A traversed source entry unexpectedly falls outside the recursive root.
Fields
NameRejected
An archive name was rejected by the configured builder policy.
Fields
NonUtf8SourcePath
A source path component cannot be represented by this UTF-8-only builder.
NonUtf8LinkTarget
A symbolic-link target cannot be represented by this UTF-8-only builder.
SourceNotDirectory
The recursive source directory is not a real directory.
SymbolicLinkRejected
The builder policy rejects source symbolic links.
UnsupportedFilesystemType
The recursive source contains a filesystem node outside the supported subset.
Filesystem
A source traversal filesystem operation failed.
Fields
BlockingTask(JoinError)
The blocking traversal task failed to complete.
Trait Implementations§
Source§impl Debug for TraversalError
impl Debug for TraversalError
Source§impl Display for TraversalError
impl Display for TraversalError
Source§impl Error for TraversalError
impl Error for TraversalError
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 From<JoinError> for TraversalError
impl From<JoinError> for TraversalError
Source§fn from(source: JoinError) -> TraversalError
fn from(source: JoinError) -> TraversalError
Converts to this type from the input type.
Source§impl<E> From<TraversalError> for BuildError<E>
impl<E> From<TraversalError> for BuildError<E>
Source§fn from(source: TraversalError) -> BuildError<E>
fn from(source: TraversalError) -> BuildError<E>
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for TraversalError
impl !UnwindSafe for TraversalError
impl Freeze for TraversalError
impl Send for TraversalError
impl Sync for TraversalError
impl Unpin for TraversalError
impl UnsafeUnpin for TraversalError
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