pub enum PyenvRootError {
NoEnvVarOrHomeDir,
NotADir {
root: PathBuf,
},
IOError {
root: PathBuf,
source: Error,
},
}
Expand description
Why the pyenv root, i.e. what $(pyenv root)
returns, could not be found.
See PyenvRoot::new
.
Variants§
NoEnvVarOrHomeDir
Either the environment variable $PYENV_ROOT
does not exist,
or the home directory does not exist
(very unlikely, unless in an OS like wasm).
NotADir
The pyenv root is not a directory.
IOError
The pyenv root could not be accessed (usually it doesn’t exist).
Trait Implementations§
Source§impl Debug for PyenvRootError
impl Debug for PyenvRootError
Source§impl Display for PyenvRootError
impl Display for PyenvRootError
Source§impl Error for PyenvRootError
impl Error for PyenvRootError
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 PyenvRootError
impl !RefUnwindSafe for PyenvRootError
impl Send for PyenvRootError
impl Sync for PyenvRootError
impl Unpin for PyenvRootError
impl !UnwindSafe for PyenvRootError
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