pub enum Error {
Show 16 variants
NotFound(String),
Null,
MissingDepsForRust,
MissingFeaturesForRust,
MissingVersionForRust,
MissingModuleName,
MissingModuleVersion,
MissingModuleInitForRust,
InvalidUtf8(Utf8Error),
RustcVersionMismatch(IncompatibleRustc),
InvalidDepFormat,
IncompatibleDep(IncompatibleDependency),
IncompatibleFeatureSet(String),
Io(Error),
MissingMetadata,
InvalidMetadata,
}module only.Expand description
Type of error when using modules.
Variants§
NotFound(String)
The module was not found (argument: module name).
Null
An unexpected NULL character was found.
MissingDepsForRust
Missing DEPS metadata key for a Rust based module.
MissingFeaturesForRust
Missing FEATURES metadata key for a Rust based module.
MissingVersionForRust
Missing RUSTC version key for a Rust based module.
MissingModuleName
Missing NAME key for a module.
MissingModuleVersion
Missing VERSION key for a module.
MissingModuleInitForRust
Missing bp3d_os_module_
InvalidUtf8(Utf8Error)
The given string was not UTF8.
RustcVersionMismatch(IncompatibleRustc)
The RUSTC version in the module metadata does not match the RUSTC version used to build this ModuleLoader.
InvalidDepFormat
Invalid format for the DEPS metadata key.
IncompatibleDep(IncompatibleDependency)
Incompatible dependency API found.
IncompatibleFeatureSet(String)
Unmatched feature-set.
Io(Error)
An IO error.
MissingMetadata
The module does not contain a valid metadata string.
InvalidMetadata
The metadata stored in the module has an invalid format.