Enum pkg_config::Error [] [src]

pub enum Error {
    EnvNoPkgConfig(String),
    CrossCompilation,
    Command {
        command: String,
        cause: Error,
    },
    Failure {
        command: String,
        output: Output,
    },
    // some variants omitted
}

Represents all reasons pkg-config might not succeed or be run at all.

Variants

EnvNoPkgConfig(String)

Aborted because of *_NO_PKG_CONFIG environment variable.

Contains the name of the responsible environment variable.

CrossCompilation

Cross compilation detected.

Override with PKG_CONFIG_ALLOW_CROSS=1.

Command

Failed to run pkg-config.

Contains the command and the cause.

Fields

command: String
cause: Error
Failure

pkg-config did not exit sucessfully.

Contains the command and output.

Fields

command: String
output: Output

Trait Implementations

impl Error for Error
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>

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

impl Debug for Error
[src]

fn fmt(&self, f: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.

impl Display for Error
[src]

fn fmt(&self, f: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.