#[repr(u8)]pub enum OpTxType {
Legacy = 0,
Eip2930 = 1,
Eip1559 = 2,
Eip4844 = 3,
Deposit = 126,
}
Expand description
Optimism TransactionType
flags as specified in EIPs 2718, 1559, and
2930, as well as the deposit transaction spec
Variants§
Legacy = 0
Legacy transaction type.
Eip2930 = 1
EIP-2930 transaction type.
Eip1559 = 2
EIP-1559 transaction type.
Eip4844 = 3
EIP-4844 transaction type.
Deposit = 126
Optimism Deposit transaction type.
Implementations§
Trait Implementations§
source§impl<'a> Arbitrary<'a> for OpTxType
Available on crate feature arbitrary
only.
impl<'a> Arbitrary<'a> for OpTxType
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 OpTxType
impl Ord for OpTxType
source§impl PartialOrd for OpTxType
impl PartialOrd for OpTxType
impl Copy for OpTxType
impl Eq for OpTxType
impl StructuralPartialEq for OpTxType
Auto Trait Implementations§
impl Freeze for OpTxType
impl RefUnwindSafe for OpTxType
impl Send for OpTxType
impl Sync for OpTxType
impl Unpin for OpTxType
impl UnwindSafe for OpTxType
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
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: 1 byte
Size for each variant:
Legacy
: 0 bytesEip2930
: 0 bytesEip1559
: 0 bytesEip4844
: 0 bytesDeposit
: 0 bytes