Enum wdk_build::ConfigFromEnvError
source · pub enum ConfigFromEnvError {
EnvError(VarError),
DeserializeError(Error),
ConfigMismatch {
config_1: Box<Config>,
config_1_source: String,
config_2: Box<Config>,
config_2_source: String,
},
ConfigNotFound,
}
Expand description
Errors that could result from parsing a configuration from a [wdk-build
]
build environment
Variants§
EnvError(VarError)
Error returned when an expected environment variable is not found
DeserializeError(Error)
Error returned when serde_json
fails to deserialize the Config
ConfigMismatch
Fields
Error returned when the config from one WDK dependency does not match the config from another
ConfigNotFound
Error returned when no WDK configs exported from dependencies could be found
Trait Implementations§
source§impl Debug for ConfigFromEnvError
impl Debug for ConfigFromEnvError
source§impl Display for ConfigFromEnvError
impl Display for ConfigFromEnvError
source§impl Error for ConfigFromEnvError
impl Error for ConfigFromEnvError
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 ConfigFromEnvError
impl From<Error> for ConfigFromEnvError
Auto Trait Implementations§
impl !RefUnwindSafe for ConfigFromEnvError
impl Send for ConfigFromEnvError
impl Sync for ConfigFromEnvError
impl Unpin for ConfigFromEnvError
impl !UnwindSafe for ConfigFromEnvError
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