pub enum CliError {
Http(Error),
Api {
status: u16,
body: String,
},
Download {
url: String,
status: u16,
},
Io(Error),
LockParse(Error),
LockEncode(Error),
BadHandle(String),
WouldOverwrite(Vec<String>),
NotInstalled {
handle: String,
target: String,
},
LocallyModified {
handle: String,
details: Vec<String>,
},
UnsafePath(String),
}Expand description
Errors surfaced by the CLI.
Variants§
Http(Error)
Api
Download
A file download from the artifact’s source host failed. Distinct from
CliError::Api because the two name different systems: a 404 from
raw.githubusercontent.com is not the registry being wrong.
Io(Error)
LockParse(Error)
LockEncode(Error)
BadHandle(String)
WouldOverwrite(Vec<String>)
NotInstalled
LocallyModified
UnsafePath(String)
Trait Implementations§
Source§impl Error for CliError
impl Error for CliError
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 CliError
impl !UnwindSafe for CliError
impl Freeze for CliError
impl Send for CliError
impl Sync for CliError
impl Unpin for CliError
impl UnsafeUnpin for CliError
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