Enum pyenv_python::PyenvRootError [−][src]
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
Either the environment variable $PYENV_ROOT
does not exist,
or the home directory does not exist
(very unlikely, unless in an OS like wasm).
The pyenv root is not a directory.
Fields of NotADir
root: PathBuf
The pyenv root could not be accessed (usually it doesn’t exist).
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for PyenvRootError
impl Send for PyenvRootError
impl Sync for PyenvRootError
impl Unpin for PyenvRootError
impl !UnwindSafe for PyenvRootError
Blanket Implementations
Apply a function which takes the parameter by value.
Apply a function which takes the parameter by reference.
Mutably borrows from an owned value. Read more