#[non_exhaustive]pub enum EvaluationFailure {
Syntax,
Runtime,
Refused,
LimitReached {
limit: EvaluationLimit,
},
UnknownField {
field: Written<FieldName>,
},
WrongFieldType {
field: Written<FieldName>,
},
}Expand description
How an adapter failed to evaluate one build file.
Closed for an adapter, which reports every failure through it without a new variant; open for a caller matching on it, which keeps a wildcard arm.
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.
Syntax
The build file does not parse.
Runtime
Evaluation raised an error.
Refused
The runtime refused an operation the declaration policy does not grant.
LimitReached
A ceiling was reached.
Fields
§
limit: EvaluationLimitWhich ceiling.
UnknownField
An option table holds a field its primitive does not accept.
WrongFieldType
A field holds a value of the wrong type.
Trait Implementations§
Source§impl Clone for EvaluationFailure
impl Clone for EvaluationFailure
Source§impl Debug for EvaluationFailure
impl Debug for EvaluationFailure
Source§impl Display for EvaluationFailure
impl Display for EvaluationFailure
impl Eq for EvaluationFailure
Source§impl PartialEq for EvaluationFailure
impl PartialEq for EvaluationFailure
impl StructuralPartialEq for EvaluationFailure
Auto Trait Implementations§
impl Forget for EvaluationFailure
impl Freeze for EvaluationFailure
impl Move for EvaluationFailure
impl RefUnwindSafe for EvaluationFailure
impl Send for EvaluationFailurewhere
RawVecInner: Send,
impl Sync for EvaluationFailurewhere
RawVecInner: Sync,
impl Unpin for EvaluationFailure
impl UnsafeUnpin for EvaluationFailurewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<fn() -> FieldName>: UnsafeUnpin,
impl UnwindSafe for EvaluationFailurewhere
RawVecInner: UnwindSafe,
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