#[non_exhaustive]pub enum MeasurementContractError {
NonFiniteValue {
path: String,
},
InvalidStructure {
path: String,
reason: String,
},
}Expand description
Measurement evidence could not satisfy the current measurement contract.
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.
NonFiniteValue
A required or present numeric value was non-finite.
InvalidStructure
Related measurement fields were structurally inconsistent.
Trait Implementations§
Source§impl Clone for MeasurementContractError
impl Clone for MeasurementContractError
Source§fn clone(&self) -> MeasurementContractError
fn clone(&self) -> MeasurementContractError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MeasurementContractError
impl Debug for MeasurementContractError
Source§impl Display for MeasurementContractError
impl Display for MeasurementContractError
impl Eq for MeasurementContractError
Source§impl Error for MeasurementContractError
impl Error for MeasurementContractError
1.30.0 · 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 PartialEq for MeasurementContractError
impl PartialEq for MeasurementContractError
impl StructuralPartialEq for MeasurementContractError
Auto Trait Implementations§
impl Freeze for MeasurementContractError
impl RefUnwindSafe for MeasurementContractError
impl Send for MeasurementContractError
impl Sync for MeasurementContractError
impl Unpin for MeasurementContractError
impl UnsafeUnpin for MeasurementContractError
impl UnwindSafe for MeasurementContractError
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