pub enum SpanBatchTransactionData {
Legacy(SpanBatchLegacyTransactionData),
Eip2930(SpanBatchEip2930TransactionData),
Eip1559(SpanBatchEip1559TransactionData),
}
Available on crate feature
protocol
only.Expand description
The typed transaction data for a transaction within a span batch.
Variants§
Legacy(SpanBatchLegacyTransactionData)
Legacy transaction data.
Eip2930(SpanBatchEip2930TransactionData)
EIP-2930 transaction data.
Eip1559(SpanBatchEip1559TransactionData)
EIP-1559 transaction data.
Implementations§
Source§impl SpanBatchTransactionData
impl SpanBatchTransactionData
Sourcepub const fn tx_type(&self) -> TxType
pub const fn tx_type(&self) -> TxType
Returns the transaction type of the SpanBatchTransactionData.
Sourcepub fn decode_typed(b: &[u8]) -> Result<SpanBatchTransactionData, Error>
pub fn decode_typed(b: &[u8]) -> Result<SpanBatchTransactionData, Error>
Decodes a typed transaction into a SpanBatchTransactionData from a byte slice.
Sourcepub fn to_enveloped_tx(
&self,
nonce: u64,
gas: u64,
to: Option<Address>,
chain_id: u64,
signature: PrimitiveSignature,
is_protected: bool,
) -> Result<OpTxEnvelope, SpanBatchError>
pub fn to_enveloped_tx( &self, nonce: u64, gas: u64, to: Option<Address>, chain_id: u64, signature: PrimitiveSignature, is_protected: bool, ) -> Result<OpTxEnvelope, SpanBatchError>
Converts the SpanBatchTransactionData into a OpTxEnvelope.
Trait Implementations§
Source§impl Clone for SpanBatchTransactionData
impl Clone for SpanBatchTransactionData
Source§fn clone(&self) -> SpanBatchTransactionData
fn clone(&self) -> SpanBatchTransactionData
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SpanBatchTransactionData
impl Debug for SpanBatchTransactionData
Source§impl Decodable for SpanBatchTransactionData
impl Decodable for SpanBatchTransactionData
Source§impl Encodable for SpanBatchTransactionData
impl Encodable for SpanBatchTransactionData
Source§impl PartialEq for SpanBatchTransactionData
impl PartialEq for SpanBatchTransactionData
Source§impl TryFrom<&TxEnvelope> for SpanBatchTransactionData
impl TryFrom<&TxEnvelope> for SpanBatchTransactionData
Source§type Error = SpanBatchError
type Error = SpanBatchError
The type returned in the event of a conversion error.
Source§fn try_from(
tx_envelope: &TxEnvelope,
) -> Result<SpanBatchTransactionData, <SpanBatchTransactionData as TryFrom<&TxEnvelope>>::Error>
fn try_from( tx_envelope: &TxEnvelope, ) -> Result<SpanBatchTransactionData, <SpanBatchTransactionData as TryFrom<&TxEnvelope>>::Error>
Performs the conversion.
impl Eq for SpanBatchTransactionData
impl StructuralPartialEq for SpanBatchTransactionData
Auto Trait Implementations§
impl !Freeze for SpanBatchTransactionData
impl RefUnwindSafe for SpanBatchTransactionData
impl Send for SpanBatchTransactionData
impl Sync for SpanBatchTransactionData
impl Unpin for SpanBatchTransactionData
impl UnwindSafe for SpanBatchTransactionData
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 more