pub enum ProjectValidationError {
MissingFile {
kind: ProjectFileKind,
path: PathBuf,
},
NotRegularFile {
kind: ProjectFileKind,
path: PathBuf,
},
ExcludedFile {
kind: ProjectFileKind,
path: PathBuf,
},
Io {
kind: ProjectFileKind,
path: PathBuf,
source: Error,
},
Content(HashError),
}Expand description
An error validating a loaded module project.
Variants§
MissingFile
A required manifest-referenced file does not exist.
Fields
§
kind: ProjectFileKindThe role of the missing file.
NotRegularFile
A required manifest reference does not resolve to a regular file.
Fields
§
kind: ProjectFileKindThe role of the invalid file.
ExcludedFile
A required manifest reference is omitted from module content hashing.
Fields
§
kind: ProjectFileKindThe role of the excluded file.
Io
Inspecting a required manifest-referenced file failed.
Fields
§
kind: ProjectFileKindThe role of the file.
Content(HashError)
Module content violated a tree or hashing invariant.
Trait Implementations§
Source§impl Debug for ProjectValidationError
impl Debug for ProjectValidationError
Source§impl Display for ProjectValidationError
impl Display for ProjectValidationError
Source§impl Error for ProjectValidationError
impl Error for ProjectValidationError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for ProjectValidationError
impl !UnwindSafe for ProjectValidationError
impl Freeze for ProjectValidationError
impl Send for ProjectValidationError
impl Sync for ProjectValidationError
impl Unpin for ProjectValidationError
impl UnsafeUnpin for ProjectValidationError
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