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 successfully after probing a library.
Contains the command and output.
ProbeFailure
pkg-config
did not exit successfully on the first attempt to probe a library.
Contains the command and output.
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more