Enum alloy_consensus::transaction::envelope::TxType
source · #[repr(u8)]pub enum TxType {
Legacy = 0,
Eip2930 = 1,
Eip1559 = 2,
Eip4844 = 3,
}
Variants§
Legacy = 0
Legacy transaction type.
Eip2930 = 1
EIP-2930 transaction type.
Eip1559 = 2
EIP-1559 transaction type.
Eip4844 = 3
EIP-4844 transaction type.
Trait Implementations§
source§impl<'a> Arbitrary<'a> for TxType
Available on crate feature arbitrary
only.
impl<'a> Arbitrary<'a> for TxType
Available on crate feature
arbitrary
only.source§fn arbitrary(u: &mut Unstructured<'_>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'_>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read more§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl Ord for TxType
impl Ord for TxType
source§impl PartialEq for TxType
impl PartialEq for TxType
source§impl PartialOrd for TxType
impl PartialOrd for TxType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for TxType
impl Eq for TxType
impl StructuralPartialEq for TxType
Auto Trait Implementations§
impl Freeze for TxType
impl RefUnwindSafe for TxType
impl Send for TxType
impl Sync for TxType
impl Unpin for TxType
impl UnwindSafe for TxType
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> 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 moreLayout§
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: 1 byte
Size for each variant:
Legacy
: 0 bytesEip2930
: 0 bytesEip1559
: 0 bytesEip4844
: 0 bytes