pub enum AdoptError {
DstMissing(PathBuf),
OutsideHome {
dst: PathBuf,
},
RepoCollision {
src: PathBuf,
},
Io(Error),
Manifest(Box<ManifestError>),
Resolve(Box<ResolveError>),
}Expand description
Errors from adopt or adopt_edits.
Variants§
DstMissing(PathBuf)
The file at dst does not exist.
OutsideHome
dst is not under $HOME and no --src override was supplied.
RepoCollision
A file already exists at <repo>/<src> and --force was not set.
Io(Error)
I/O failure.
Manifest(Box<ManifestError>)
Manifest read/write failure (boxed to keep enum ≤ 128 bytes).
Resolve(Box<ResolveError>)
Path variable resolution failure (boxed to keep enum ≤ 128 bytes).
Trait Implementations§
Source§impl Debug for AdoptError
impl Debug for AdoptError
Source§impl Display for AdoptError
impl Display for AdoptError
Source§impl Error for AdoptError
impl Error for AdoptError
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<Box<ManifestError>> for AdoptError
impl From<Box<ManifestError>> for AdoptError
Source§fn from(source: Box<ManifestError>) -> Self
fn from(source: Box<ManifestError>) -> Self
Converts to this type from the input type.
Source§impl From<Box<ResolveError>> for AdoptError
impl From<Box<ResolveError>> for AdoptError
Source§fn from(source: Box<ResolveError>) -> Self
fn from(source: Box<ResolveError>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AdoptError
impl !RefUnwindSafe for AdoptError
impl Send for AdoptError
impl Sync for AdoptError
impl Unpin for AdoptError
impl UnsafeUnpin for AdoptError
impl !UnwindSafe for AdoptError
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
Source§impl<T> ErrorExt for T
impl<T> ErrorExt for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more