pub enum AppRootError {
InvalidName(String),
PathEscape(String),
CaseConflict {
requested: String,
existing: String,
},
WriterBusy(PathBuf),
UnsupportedSource(PathBuf),
Collision(PathBuf),
Overlap(PathBuf),
VerifyFailed(PathBuf),
Suite(SuiteError),
Io(Error),
}Variants§
InvalidName(String)
PathEscape(String)
A subpath was absolute, had .., ., a prefix, was empty, or resolved outside the root.
CaseConflict
An existing sibling differs from the requested app name only by case.
WriterBusy(PathBuf)
Another process holds the single-writer lock.
UnsupportedSource(PathBuf)
The source tree holds a symlink, junction or other reparse point, or special file that this
migration mode refuses (strict mode refuses every one; an opt-in mode still refuses
devices and other specials, and a junction or reparse point unless
MigrateOptions::skip_reparse_points is on).
Collision(PathBuf)
A destination file exists with different content; nothing is overwritten.
Overlap(PathBuf)
Source and destination are the same tree or nested in each other.
VerifyFailed(PathBuf)
Post-copy verification found a difference.
Suite(SuiteError)
Io(Error)
Implementations§
Source§impl AppRootError
impl AppRootError
Sourcepub fn link_not_created(&self) -> Option<&LinkNotCreated>
pub fn link_not_created(&self) -> Option<&LinkNotCreated>
The typed link failure carried by an AppRootError::Io, if that is what this is: a
symlink the destination could not create (Windows without the symlink privilege or
Developer Mode, or a filesystem without links) during an opt-in migration. Read the link,
its original target and the target that would have been written from LinkNotCreated.
Sourcepub fn is_retryable(&self) -> bool
pub fn is_retryable(&self) -> bool
True when trying again can succeed without changing the request: a link the destination
could not create yet (AppRootError::link_not_created) or a busy writer lock.
Trait Implementations§
Source§impl Debug for AppRootError
impl Debug for AppRootError
Source§impl Display for AppRootError
impl Display for AppRootError
Source§impl Error for AppRootError
impl Error for AppRootError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()