pub enum GetLocalVersionError {
Process(RunCommandError),
PackageNotFound(String),
}Expand description
Error returned by Package::get_local_version.
Variants§
Process(RunCommandError)
A child process failed.
PackageNotFound(String)
Requested package not found in the metadata.
Trait Implementations§
Source§impl Debug for GetLocalVersionError
impl Debug for GetLocalVersionError
Source§impl Display for GetLocalVersionError
impl Display for GetLocalVersionError
Source§impl Error for GetLocalVersionError
impl Error for GetLocalVersionError
1.30.0 · 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 Freeze for GetLocalVersionError
impl !RefUnwindSafe for GetLocalVersionError
impl Send for GetLocalVersionError
impl Sync for GetLocalVersionError
impl Unpin for GetLocalVersionError
impl !UnwindSafe for GetLocalVersionError
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