#[non_exhaustive]pub enum OutputContractError {
TooManyFiles {
found: usize,
limit: usize,
},
TooManyChecks {
found: usize,
limit: usize,
},
PredictionWithoutProvenance,
PredictionPrimaryInputMismatch,
TooManyPredictionFacets {
found: usize,
limit: usize,
},
TooManyPredictionBasisReferences {
found: usize,
limit: usize,
},
TooMuchPredictionText {
found: usize,
limit: usize,
},
ArithmeticOverflow,
InvalidPrediction(PredictionContractError),
}Expand description
A producer attempted to construct output outside the immutable v10 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.
TooManyFiles
One envelope carried too many file records.
TooManyChecks
One lint file carried too many check records.
PredictionWithoutProvenance
A check carried prediction evidence without its file-scoped authority.
PredictionPrimaryInputMismatch
File and provenance primary-input identities differed.
TooManyPredictionFacets
Aggregate prediction facets exceeded the V1 file limit.
TooManyPredictionBasisReferences
Aggregate basis references exceeded the V1 file limit.
TooMuchPredictionText
Aggregate retained provenance/prediction text exceeded the V1 limit.
ArithmeticOverflow
Checked aggregate accounting overflowed.
InvalidPrediction(PredictionContractError)
Nested prediction evidence violated its contract.
Trait Implementations§
Source§impl Clone for OutputContractError
impl Clone for OutputContractError
Source§fn clone(&self) -> OutputContractError
fn clone(&self) -> OutputContractError
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 OutputContractError
impl Debug for OutputContractError
Source§impl Display for OutputContractError
impl Display for OutputContractError
impl Eq for OutputContractError
Source§impl Error for OutputContractError
impl Error for OutputContractError
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<PredictionContractError> for OutputContractError
impl From<PredictionContractError> for OutputContractError
Source§fn from(source: PredictionContractError) -> Self
fn from(source: PredictionContractError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OutputContractError
impl PartialEq for OutputContractError
impl StructuralPartialEq for OutputContractError
Auto Trait Implementations§
impl Freeze for OutputContractError
impl RefUnwindSafe for OutputContractError
impl Send for OutputContractError
impl Sync for OutputContractError
impl Unpin for OutputContractError
impl UnsafeUnpin for OutputContractError
impl UnwindSafe for OutputContractError
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