pub enum TreeChecksumError {
Io(Error),
Input(ArtifactError),
Declaration(DirectoryChecksumError),
InvalidPath {
path: PathBuf,
},
NonUtf8Path {
path: PathBuf,
},
UnsupportedEntry {
path: PathBuf,
kind: FileType,
},
}Expand description
Directory-path, descriptor, bounded-stream or declared-identity failure.
Variants§
Io(Error)
A filesystem observation or descriptor operation failed.
Input(ArtifactError)
A regular-file stream failed or exceeded its caller-selected bound.
Declaration(DirectoryChecksumError)
Declared file identities cannot produce the canonical checksum.
InvalidPath
A selected path cannot be opened through normal UTF-8 components.
NonUtf8Path
A child name is not UTF-8.
UnsupportedEntry
A tree entry is not a regular file or directory.
Trait Implementations§
Source§impl Debug for TreeChecksumError
impl Debug for TreeChecksumError
Source§impl Display for TreeChecksumError
impl Display for TreeChecksumError
Source§impl Error for TreeChecksumError
impl Error for TreeChecksumError
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<ArtifactError> for TreeChecksumError
impl From<ArtifactError> for TreeChecksumError
Source§fn from(source: ArtifactError) -> Self
fn from(source: ArtifactError) -> Self
Converts to this type from the input type.
Source§impl From<DirectoryChecksumError> for TreeChecksumError
impl From<DirectoryChecksumError> for TreeChecksumError
Source§fn from(source: DirectoryChecksumError) -> Self
fn from(source: DirectoryChecksumError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for TreeChecksumError
impl !UnwindSafe for TreeChecksumError
impl Freeze for TreeChecksumError
impl Send for TreeChecksumError
impl Sync for TreeChecksumError
impl Unpin for TreeChecksumError
impl UnsafeUnpin for TreeChecksumError
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