Enum system_deps::Error
source · [−]pub enum Error {
PkgConfig(Error),
BuildInternalClosureError(String, BuildInternalClosureError),
FailToRead(String, Error),
InvalidMetadata(String),
MissingLib(String),
BuildInternalInvalid(String),
BuildInternalNoClosure(String, String),
BuildInternalWrongVersion(String, String, String),
UnsupportedCfg(String),
}Expand description
system-deps errors
Variants
PkgConfig(Error)
pkg-config error
BuildInternalClosureError(String, BuildInternalClosureError)
One of the Config::add_build_internal closures failed
FailToRead(String, Error)
Failed to read Cargo.toml
InvalidMetadata(String)
Raised when an error is detected in the metadata defined in Cargo.toml
MissingLib(String)
Raised when dependency defined manually using SYSTEM_DEPS_$NAME_NO_PKG_CONFIG
did not define at least one lib using SYSTEM_DEPS_$NAME_LIB or
SYSTEM_DEPS_$NAME_LIB_FRAMEWORK
BuildInternalInvalid(String)
An environment variable in the form of SYSTEM_DEPS_$NAME_BUILD_INTERNAL
contained an invalid value (allowed: auto, always, never)
BuildInternalNoClosure(String, String)
system-deps has been asked to internally build a lib, through
SYSTEM_DEPS_$NAME_BUILD_INTERNAL=always' or SYSTEM_DEPS_$NAME_BUILD_INTERNAL=auto’,
but not closure has been defined using Config::add_build_internal to build
this lib
BuildInternalWrongVersion(String, String, String)
The library which has been build internally does not match the
required version defined in Cargo.toml
UnsupportedCfg(String)
The cfg() expression used in Cargo.toml is currently not supported
Trait Implementations
sourceimpl Error for Error
impl Error for Error
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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more