#[non_exhaustive]pub enum TxCompilerErrorCode {
InvalidPayload,
UnsupportedChain,
UnsupportedTxType,
UnsupportedFeeMode,
InvalidAddress,
InvalidAmount,
MissingFeeParams,
InvalidBlockHeader,
InvalidCalldata,
CompilationFailed,
}Expand description
Discriminator for the class of error raised by the compiler.
The variants use stable string discriminators so downstream consumers can share audit receipts and error vocabulary across versions.
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.
InvalidPayload
The caller passed an input that failed top-level shape checks.
UnsupportedChain
The chain identifier is not one this crate compiles.
UnsupportedTxType
The transaction type is not recognised.
UnsupportedFeeMode
The fee mode is not valid for the target chain.
InvalidAddress
An address failed chain-specific validation.
InvalidAmount
A numeric amount (wei, SUN, gas unit) was malformed.
MissingFeeParams
A mode-required fee parameter was absent.
InvalidBlockHeader
The Tron block-header reference is malformed or incomplete.
InvalidCalldata
An EVM ERC-20 calldata payload was malformed.
CompilationFailed
A downstream compilation step failed unexpectedly.
Implementations§
Trait Implementations§
Source§impl Clone for TxCompilerErrorCode
impl Clone for TxCompilerErrorCode
Source§fn clone(&self) -> TxCompilerErrorCode
fn clone(&self) -> TxCompilerErrorCode
Returns a duplicate 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 TxCompilerErrorCode
impl Debug for TxCompilerErrorCode
Source§impl<'de> Deserialize<'de> for TxCompilerErrorCode
impl<'de> Deserialize<'de> for TxCompilerErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TxCompilerErrorCode
impl Display for TxCompilerErrorCode
Source§impl Hash for TxCompilerErrorCode
impl Hash for TxCompilerErrorCode
Source§impl PartialEq for TxCompilerErrorCode
impl PartialEq for TxCompilerErrorCode
Source§impl Serialize for TxCompilerErrorCode
impl Serialize for TxCompilerErrorCode
impl Copy for TxCompilerErrorCode
impl Eq for TxCompilerErrorCode
impl StructuralPartialEq for TxCompilerErrorCode
Auto Trait Implementations§
impl Freeze for TxCompilerErrorCode
impl RefUnwindSafe for TxCompilerErrorCode
impl Send for TxCompilerErrorCode
impl Sync for TxCompilerErrorCode
impl Unpin for TxCompilerErrorCode
impl UnsafeUnpin for TxCompilerErrorCode
impl UnwindSafe for TxCompilerErrorCode
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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