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

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.

Fields of NotADir

root: PathBuf
IOError

The pyenv root could not be accessed (usually it doesn’t exist).

Fields of IOError

root: PathBufsource: Error

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.