#[non_exhaustive]pub enum Error {
InvalidConfig {
message: String,
config: Value,
},
NoSuchVariable(String),
IncorrectVariableType {
name: String,
expected_type: String,
},
CouldNotLoad {
expected_type: String,
config: Value,
},
AllVariantsFailed {
config: Value,
errors: Vec<Error>,
},
BlueprintNotFound(String),
BlueprintFailed(String, Box<Error>),
MakerFailed(String),
ResolveFailed {
var_failure: Box<Error>,
config_failure: Box<Error>,
},
}
Expand description
Error during config parsing.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidConfig
The configuration was invalid.
NoSuchVariable(String)
Found no variable with the given name.
IncorrectVariableType
Found a variable, but with a different type than expected.
CouldNotLoad
Could not load the given config.
AllVariantsFailed
All variants from a multi-variant blueprint failed.
Fields
BlueprintNotFound(String)
A blueprint was not found
BlueprintFailed(String, Box<Error>)
A blueprint failed to run.
This is in direct cause to an error in an actual blueprint.
MakerFailed(String)
A maker failed to produce a value.
ResolveFailed
We failed to resolve a value.
It means we failed to load it as a variable, and also failed to load it as a config.
Implementations§
Trait Implementations§
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