pub enum TransactionV2 {
Legacy(LegacyTransaction),
EIP2930(EIP2930Transaction),
EIP1559(EIP1559Transaction),
}
Variants§
Legacy(LegacyTransaction)
Legacy transaction type
EIP2930(EIP2930Transaction)
EIP-2930 transaction
EIP1559(EIP1559Transaction)
EIP-1559 transaction
Implementations§
Trait Implementations§
Source§impl Clone for TransactionV2
impl Clone for TransactionV2
Source§fn clone(&self) -> TransactionV2
fn clone(&self) -> TransactionV2
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TransactionV2
impl Debug for TransactionV2
Source§impl EnvelopedDecodable for TransactionV2
impl EnvelopedDecodable for TransactionV2
Source§type PayloadDecoderError = DecoderError
type PayloadDecoderError = DecoderError
Inner payload decoder error.
Source§fn decode(
bytes: &[u8],
) -> Result<Self, EnvelopedDecoderError<Self::PayloadDecoderError>>
fn decode( bytes: &[u8], ) -> Result<Self, EnvelopedDecoderError<Self::PayloadDecoderError>>
Decode raw bytes to a Self type.
Source§impl EnvelopedEncodable for TransactionV2
impl EnvelopedEncodable for TransactionV2
Source§impl From<LegacyTransaction> for TransactionV2
impl From<LegacyTransaction> for TransactionV2
Source§fn from(t: LegacyTransaction) -> Self
fn from(t: LegacyTransaction) -> Self
Converts to this type from the input type.
Source§impl From<TransactionV1> for TransactionV2
impl From<TransactionV1> for TransactionV2
Source§fn from(t: TransactionV1) -> Self
fn from(t: TransactionV1) -> Self
Converts to this type from the input type.
Source§impl From<TransactionV2> for TransactionV3
impl From<TransactionV2> for TransactionV3
Source§fn from(t: TransactionV2) -> Self
fn from(t: TransactionV2) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TransactionV2
impl PartialEq for TransactionV2
impl Eq for TransactionV2
impl StructuralPartialEq for TransactionV2
Auto Trait Implementations§
impl Freeze for TransactionV2
impl RefUnwindSafe for TransactionV2
impl Send for TransactionV2
impl Sync for TransactionV2
impl Unpin for TransactionV2
impl UnwindSafe for TransactionV2
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