Enum pyenv_python::PyenvError[][src]

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 of NoRoot

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.

Fields of NoVersion

root: PyenvRoot
NoExecutable

The pyenv python executable can’t be found or is not an executable.

Fields of NoExecutable

error: PyenvPythonExecutableErrorroot: PyenvRootversion: PyenvVersionpython_path: PathBuf

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Apply a function to this value and return the (possibly) modified value.

Gets the TypeId of self. Read more

Apply a function which takes the parameter by value.

Apply a function which takes the parameter by reference.

Apply a function which takes the parameter by mutable reference.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.