pub enum Error {
Show 13 variants
SourceMissing(PathBuf),
DestinationExists(PathBuf),
StagingExists(PathBuf),
SourceBusy {
path: PathBuf,
},
DestinationHasNoParent(PathBuf),
DestinationInsideSource {
src: PathBuf,
dest: PathBuf,
},
CrossDevice {
src: PathBuf,
dest: PathBuf,
},
Io {
op: &'static str,
path: PathBuf,
source: Error,
},
Walk {
path: PathBuf,
source: Error,
},
MetadataSpawn(Error),
MetadataFailed(String),
MetadataParse(Error),
MetadataNoTargetDir,
}Variants§
SourceMissing(PathBuf)
DestinationExists(PathBuf)
StagingExists(PathBuf)
SourceBusy
Reading a target directory a build is writing to yields a tree whose fingerprints and artifacts were captured at different moments — and Cargo reads that tree as fresh. Refused while the build holds its lock.
DestinationHasNoParent(PathBuf)
DestinationInsideSource
Walking the source while writing into it feeds the walk its own output, and what that fills is the disk. Refused rather than detected partway.
CrossDevice
Neither a block clone nor a hard link crosses a filesystem boundary, and the copy that would remain is the multi-gigabyte one this tool exists to avoid. Said rather than silently done.
Io
Walk
MetadataSpawn(Error)
MetadataFailed(String)
MetadataParse(Error)
MetadataNoTargetDir
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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