pub enum PyenvError {
NoRoot {
error: PyenvRootError,
},
NoVersion {
root: PyenvRoot,
},
NoExecutable {
error: PyenvPythonExecutableError,
root: PyenvRoot,
version: PyenvVersion,
python_path: PathBuf,
},
}
Expand description
Possible errors in looking up the current pyenv
python
executable.
Variants§
NoRoot
Fields
§
error: PyenvRootError
NoVersion
The pyenv
version can’t be found anywhere,
neither the shell, local, or global versions.
See https://github.com/pyenv/pyenv#choosing-the-python-version for the algorithm.
NoExecutable
The pyenv
python
executable can’t be found or is not an executable.
Trait Implementations§
Source§impl Debug for PyenvError
impl Debug for PyenvError
Source§impl Display for PyenvError
impl Display for PyenvError
Source§impl Error for PyenvError
impl Error for PyenvError
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<PyenvRootError> for PyenvError
impl From<PyenvRootError> for PyenvError
Source§fn from(source: PyenvRootError) -> Self
fn from(source: PyenvRootError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PyenvError
impl !RefUnwindSafe for PyenvError
impl Send for PyenvError
impl Sync for PyenvError
impl Unpin for PyenvError
impl !UnwindSafe for PyenvError
Blanket Implementations§
Source§impl<T, Res> Apply<Res> for Twhere
T: ?Sized,
impl<T, Res> Apply<Res> for Twhere
T: ?Sized,
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