pub enum Error {
MissingType(String),
CircularDependency(String),
InvalidPropertyDefinition(String),
TypeMismatch {
expected: String,
actual: String,
},
EncodeLengthMismatch {
expected: usize,
actual: usize,
},
TopicLengthMismatch {
expected: usize,
actual: usize,
},
SelectorMismatch {
expected: FixedBytes<4>,
actual: FixedBytes<4>,
},
EventSignatureMismatch {
expected: FixedBytes<32>,
actual: FixedBytes<32>,
},
Hex(FromHexError),
TypeParser(Error),
SolTypes(Error),
}dyn-abi only.Expand description
Error when parsing EIP-712 encodeType strings
https://eips.ethereum.org/EIPS/eip-712#definition-of-encodetype
Variants§
MissingType(String)
eip712 only.Unknown type referenced from another type.
CircularDependency(String)
eip712 only.Detected circular dep during typegraph resolution.
InvalidPropertyDefinition(String)
eip712 only.Invalid property definition.
TypeMismatch
Type mismatch during encoding or coercion.
EncodeLengthMismatch
Length mismatch during encoding.
TopicLengthMismatch
Length mismatch during event topic decoding.
SelectorMismatch
Selector mismatch during function or error decoding.
EventSignatureMismatch
Invalid event signature.
Hex(FromHexError)
hex error.
TypeParser(Error)
alloy_sol_type_parser error.
SolTypes(Error)
alloy_sol_types error.
Implementations§
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<FromHexError> for Error
impl From<FromHexError> for Error
Source§fn from(e: FromHexError) -> Error
fn from(e: FromHexError) -> Error
Source§impl From<TryReserveError> for Error
impl From<TryReserveError> for Error
Source§fn from(value: TryReserveError) -> Error
fn from(value: TryReserveError) -> Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 72 bytes
Size for each variant:
MissingType: 31 bytesCircularDependency: 31 bytesInvalidPropertyDefinition: 31 bytesTypeMismatch: 55 bytesEncodeLengthMismatch: 23 bytesTopicLengthMismatch: 23 bytesSelectorMismatch: 8 bytesEventSignatureMismatch: 64 bytesHex: 23 bytesTypeParser: 15 bytesSolTypes: 55 bytes