Enum pkg_config::Error
[−]
[src]
pub enum Error {
EnvNoPkgConfig(String),
CrossCompilation,
MSVC,
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.
CrossCompilationCross compilation detected.
Override with PKG_CONFIG_ALLOW_CROSS=1.
MSVCAttempted to compile using the MSVC ABI build
CommandFailed to run pkg-config.
Contains the command and the cause.
Fields of Command
command: String | |
cause: Error |
Failurepkg-config did not exit sucessfully.
Contains the command and output.
Fields of Failure
command: String | |
output: Output |
Trait Implementations
impl Error for Error[src]
fn description(&self) -> &str[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>[src]
The lower-level cause of this error, if any. Read more
impl Debug for Error[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
Formats the value using the given formatter. Read more