pub enum ProjectError {
CargoTomlNotFound,
NotDampenProject,
IoError(Error),
ParseError(Error),
}Expand description
Errors that can occur during project detection and validation.
Variants§
CargoTomlNotFound
Cargo.toml not found in current directory or parents
NotDampenProject
Project doesn’t have dampen-core dependency
IoError(Error)
I/O error reading Cargo.toml
ParseError(Error)
Error parsing Cargo.toml
Trait Implementations§
Source§impl Debug for ProjectError
impl Debug for ProjectError
Source§impl Display for ProjectError
impl Display for ProjectError
Source§impl Error for ProjectError
impl Error for ProjectError
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<Error> for ProjectError
impl From<Error> for ProjectError
Auto Trait Implementations§
impl Freeze for ProjectError
impl !RefUnwindSafe for ProjectError
impl Send for ProjectError
impl Sync for ProjectError
impl Unpin for ProjectError
impl !UnwindSafe for ProjectError
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