pub enum PrecompileError {
Show 14 variants
OutOfGas,
Blake2WrongLength,
Blake2WrongFinalIndicatorFlag,
ModexpExpOverflow,
ModexpBaseOverflow,
ModexpModOverflow,
Bn128FieldPointNotAMember,
Bn128AffineGFailedToCreate,
Bn128PairLength,
BlobInvalidInputLength,
BlobMismatchedVersion,
BlobVerifyKzgProofFailed,
Fatal(String),
Other(String),
}
Variants§
OutOfGas
out of gas is the main error. Others are here just for completeness
Blake2WrongLength
Blake2WrongFinalIndicatorFlag
ModexpExpOverflow
ModexpBaseOverflow
ModexpModOverflow
Bn128FieldPointNotAMember
Bn128AffineGFailedToCreate
Bn128PairLength
BlobInvalidInputLength
The input length is not exactly 192 bytes
BlobMismatchedVersion
The commitment does not match the versioned hash
BlobVerifyKzgProofFailed
The proof verification failed
Fatal(String)
Fatal error with a custom error message
Other(String)
Catch-all variant for other errors
Implementations§
Trait Implementations§
Source§impl Clone for PrecompileError
impl Clone for PrecompileError
Source§fn clone(&self) -> PrecompileError
fn clone(&self) -> PrecompileError
Returns a copy of the value. Read more
1.0.0 · 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 PrecompileError
impl Debug for PrecompileError
Source§impl Display for PrecompileError
impl Display for PrecompileError
Source§impl Error for PrecompileError
impl Error for PrecompileError
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 Hash for PrecompileError
impl Hash for PrecompileError
Source§impl PartialEq for PrecompileError
impl PartialEq for PrecompileError
impl Eq for PrecompileError
impl StructuralPartialEq for PrecompileError
Auto Trait Implementations§
impl Freeze for PrecompileError
impl RefUnwindSafe for PrecompileError
impl Send for PrecompileError
impl Sync for PrecompileError
impl Unpin for PrecompileError
impl UnwindSafe for PrecompileError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more