Enum pkg_config::Error
source · [−]pub enum Error {
EnvNoPkgConfig(String),
CrossCompilation,
Command {
command: String,
cause: Error,
},
Failure {
command: String,
output: Output,
},
ProbeFailure {
name: String,
command: String,
output: Output,
},
// some variants omitted
}
Expand description
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
Detected cross compilation without a custom sysroot.
Ignore the error with PKG_CONFIG_ALLOW_CROSS=1
,
which may let pkg-config
select libraries
for the host’s architecture instead of the target’s.
Command
Failed to run pkg-config
.
Contains the command and the cause.
Failure
pkg-config
did not exit sucessfully after probing a library.
Contains the command and output.
ProbeFailure
pkg-config
did not exit sucessfully on the first attempt to probe a library.
Contains the command and output.
Trait Implementations
sourceimpl Error for Error
impl Error for Error
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more