#[non_exhaustive]pub enum BudgetError {
FormatVersion {
what: &'static str,
found: u32,
},
InvalidContract(String),
ContractMismatch {
recorded: String,
supplied: String,
},
InvalidRecord(String),
InvalidArtifact {
path: String,
reason: String,
},
Io(Error),
Json(Error),
}Expand description
Errors from loading a contract, assembling a record, or evaluating one.
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.
FormatVersion
The contract or record declares a format version this crate cannot read.
InvalidContract(String)
The contract is internally inconsistent.
ContractMismatch
The record was measured under a different contract.
Fields
InvalidRecord(String)
The record is structurally invalid.
InvalidArtifact
A harness artifact could not be parsed.
Fields
Io(Error)
Underlying I/O error.
Json(Error)
Underlying JSON error.
Trait Implementations§
Source§impl Debug for BudgetError
impl Debug for BudgetError
Source§impl Display for BudgetError
impl Display for BudgetError
Source§impl Error for BudgetError
impl Error for BudgetError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<BudgetError> for ParseBenchesError
impl From<BudgetError> for ParseBenchesError
Source§fn from(source: BudgetError) -> Self
fn from(source: BudgetError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for BudgetError
impl From<Error> for BudgetError
Auto Trait Implementations§
impl !RefUnwindSafe for BudgetError
impl !UnwindSafe for BudgetError
impl Freeze for BudgetError
impl Send for BudgetError
impl Sync for BudgetError
impl Unpin for BudgetError
impl UnsafeUnpin for BudgetError
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