pub enum ScaffoldError {
TargetNotEmpty(PathBuf),
Write(Error),
}Expand description
Why a course could not be scaffolded into a target directory.
Variants§
TargetNotEmpty(PathBuf)
The target directory already holds files, so the scaffold is refused before any write (§1.3.1) rather than overwriting an existing course.
Write(Error)
A filesystem operation failed while writing the scaffold (creating the directory or writing a file).
Trait Implementations§
Source§impl Debug for ScaffoldError
impl Debug for ScaffoldError
Source§impl Display for ScaffoldError
impl Display for ScaffoldError
Source§impl Error for ScaffoldError
impl Error for ScaffoldError
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 Freeze for ScaffoldError
impl !RefUnwindSafe for ScaffoldError
impl Send for ScaffoldError
impl Sync for ScaffoldError
impl Unpin for ScaffoldError
impl !UnwindSafe for ScaffoldError
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