#[non_exhaustive]pub enum Error {
Io(Error),
Parse(Box<ParseError>),
Path(PathError),
Name(NameError),
Source(SourceError),
Profile(ProfileError),
Target(TargetError),
Var(VarError),
Merge(MergeError),
}Expand description
Why a devset operation did not go through.
Each domain has its own error, so a caller matches as narrowly as it needs to:
Error::Target(TargetError::Busy) is one lock, Error::Target every target failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Io(Error)
Filesystem or process I/O failed; the message names the path.
Parse(Box<ParseError>)
A file devset reads does not parse.
Path(PathError)
A string is not a RelPath.
Name(NameError)
A string is not a name.
Source(SourceError)
A source is misconfigured, or git failed on it.
Profile(ProfileError)
A profile, or the layers together, do not resolve.
Target(TargetError)
The target cannot be found, read or written.
Var(VarError)
A variable is unanswered, unknown, or breaks a template.
Merge(MergeError)
A merge cannot run, or its resolution cannot be installed.
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()
Source§impl From<MergeError> for Error
impl From<MergeError> for Error
Source§fn from(source: MergeError) -> Self
fn from(source: MergeError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(error: ParseError) -> Self
fn from(error: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ProfileError> for Error
impl From<ProfileError> for Error
Source§fn from(source: ProfileError) -> Self
fn from(source: ProfileError) -> Self
Converts to this type from the input type.
Source§impl From<SourceError> for Error
impl From<SourceError> for Error
Source§fn from(source: SourceError) -> Self
fn from(source: SourceError) -> Self
Converts to this type from the input type.
Source§impl From<TargetError> for Error
impl From<TargetError> for Error
Source§fn from(source: TargetError) -> Self
fn from(source: TargetError) -> Self
Converts to this type from the input type.
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