#[non_exhaustive]pub enum WithdrawalDecodeError {
WrongFieldCount {
expected: usize,
found: usize,
},
FieldDecode {
field: WithdrawalField,
source: DecodeError,
},
InvalidAddressLength {
found: usize,
},
ZeroAmount,
}Expand description
Withdrawal decode failure.
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.
WrongFieldCount
A withdrawal entry did not contain exactly four fields.
FieldDecode
A field failed bounded RLP or primitive-domain decoding.
InvalidAddressLength
Withdrawal address was not exactly 20 bytes.
ZeroAmount
EIP-4895 withdrawal amounts must be nonzero.
Implementations§
Trait Implementations§
Source§impl Clone for WithdrawalDecodeError
impl Clone for WithdrawalDecodeError
Source§fn clone(&self) -> WithdrawalDecodeError
fn clone(&self) -> WithdrawalDecodeError
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 moreimpl Copy for WithdrawalDecodeError
Source§impl Debug for WithdrawalDecodeError
impl Debug for WithdrawalDecodeError
Source§impl Display for WithdrawalDecodeError
impl Display for WithdrawalDecodeError
impl Eq for WithdrawalDecodeError
Source§impl PartialEq for WithdrawalDecodeError
impl PartialEq for WithdrawalDecodeError
Source§fn eq(&self, other: &WithdrawalDecodeError) -> bool
fn eq(&self, other: &WithdrawalDecodeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WithdrawalDecodeError
Auto Trait Implementations§
impl Freeze for WithdrawalDecodeError
impl RefUnwindSafe for WithdrawalDecodeError
impl Send for WithdrawalDecodeError
impl Sync for WithdrawalDecodeError
impl Unpin for WithdrawalDecodeError
impl UnsafeUnpin for WithdrawalDecodeError
impl UnwindSafe for WithdrawalDecodeError
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