Enum wdk_build::ConfigError
source · pub enum ConfigError {
IoError(Error),
DirectoryNotFound {
directory: String,
},
StripExtendedPathPrefixError(StripExtendedPathPrefixError),
ConfigFromEnvError(ConfigFromEnvError),
ExportError(ExportError),
WDKContentRootDetectionError,
CargoMetadataError(Error),
MultipleWDKBuildCratesDetected {
package_ids: Vec<PackageId>,
},
}
Expand description
Errors that could result from configuring a build via [wdk-build
]
Variants§
IoError(Error)
Error returned when an std::io operation fails
DirectoryNotFound
Error returned when an expected directory does not exist
StripExtendedPathPrefixError(StripExtendedPathPrefixError)
Error returned when an
utils::PathExt::strip_extended_length_path_prefix
operation fails
ConfigFromEnvError(ConfigFromEnvError)
Error returned when a Config
fails to be parsed from the environment
ExportError(ExportError)
Error returned when a Config
fails to be exported to the environment
WDKContentRootDetectionError
Error returned when a Config
fails to be serialized
CargoMetadataError(Error)
Error returned when cargo_metadata execution or parsing fails
MultipleWDKBuildCratesDetected
Error returned when multiple versions of the wdk-build package are detected
Trait Implementations§
source§impl Debug for ConfigError
impl Debug for ConfigError
source§impl Display for ConfigError
impl Display for ConfigError
source§impl Error for ConfigError
impl Error for ConfigError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl From<ConfigFromEnvError> for ConfigError
impl From<ConfigFromEnvError> for ConfigError
source§fn from(source: ConfigFromEnvError) -> Self
fn from(source: ConfigFromEnvError) -> Self
Converts to this type from the input type.
source§impl From<Error> for ConfigError
impl From<Error> for ConfigError
source§impl From<Error> for ConfigError
impl From<Error> for ConfigError
source§impl From<ExportError> for ConfigError
impl From<ExportError> for ConfigError
source§fn from(source: ExportError) -> Self
fn from(source: ExportError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ConfigError
impl Send for ConfigError
impl Sync for ConfigError
impl Unpin for ConfigError
impl !UnwindSafe for ConfigError
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