pub enum TypedDataHashError {
Show 17 variants
MissingReferencedType(String),
MissingStructMember(String),
ExpectedString,
ExpectedBytes,
ExpectedBoolean,
ExpectedArray(String, ValueKind),
ExpectedObject(String, ValueKind),
ExpectedInteger,
ExpectedAddressLength(usize),
ExpectedBytesLength(usize, usize),
ExpectedArrayLength(usize, usize),
IntegerTooLong(usize),
TypeNotByteAligned(&'static str, usize),
BytesLength(usize),
IntegerLength(usize),
ExpectedHex,
UntypedProperties(Vec<String>),
}Variants§
MissingReferencedType(String)
MissingStructMember(String)
ExpectedString
ExpectedBytes
ExpectedBoolean
ExpectedArray(String, ValueKind)
ExpectedObject(String, ValueKind)
ExpectedInteger
ExpectedAddressLength(usize)
ExpectedBytesLength(usize, usize)
ExpectedArrayLength(usize, usize)
IntegerTooLong(usize)
TypeNotByteAligned(&'static str, usize)
BytesLength(usize)
IntegerLength(usize)
ExpectedHex
UntypedProperties(Vec<String>)
Trait Implementations§
Source§impl Debug for TypedDataHashError
impl Debug for TypedDataHashError
Source§impl Display for TypedDataHashError
impl Display for TypedDataHashError
Source§impl Error for TypedDataHashError
impl Error for TypedDataHashError
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()
Auto Trait Implementations§
impl Freeze for TypedDataHashError
impl RefUnwindSafe for TypedDataHashError
impl Send for TypedDataHashError
impl Sync for TypedDataHashError
impl Unpin for TypedDataHashError
impl UnsafeUnpin for TypedDataHashError
impl UnwindSafe for TypedDataHashError
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