pub enum CnfError {
Provider {
provider: Provider,
env: Arc<Environment>,
error: Error,
},
Config(String),
NotFound(String),
UnknownEnvironment,
IllegalEnvironment(String),
Execution {
cmd: String,
env: String,
error: Output,
},
Requirements {
requires: String,
provider: String,
env: String,
},
ApplicationError(Error),
NotImplemented(String),
Other {
action: String,
error: String,
},
}Variants§
Provider
Config(String)
Configuration file couldn’t be read.
NotFound(String)
Executable couldn’t be found.
UnknownEnvironment
Execution environment is unknown.
IllegalEnvironment(String)
Execution environment is illegal.
Execution
Execution of a command in some environment failed.
Requirements
Provider requirements aren’t fulfilled (e.g. some binary/package manager is missing)
ApplicationError(Error)
Transparent error from any source
NotImplemented(String)
Required feature not implemented yet
Other
Other error that doesn’t fit a category
Trait Implementations§
source§impl Error for CnfError
impl Error for CnfError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<CnfError> for ProviderError
impl From<CnfError> for ProviderError
Auto Trait Implementations§
impl !RefUnwindSafe for CnfError
impl Send for CnfError
impl Sync for CnfError
impl Unpin for CnfError
impl !UnwindSafe for CnfError
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