pub enum TransactionStatus {
NotReceived,
Received,
Pending,
Rejected,
Reverted,
AcceptedOnL2,
AcceptedOnL1,
}Variants§
NotReceived
Transaction has not been received yet (i.e. not written to storage)
Received
Transaction was received by the sequenced
Pending
Transaction passed the validation and entered the pending block
Rejected
The transaction failed validation and was skipped (applies both to a pending and actual created block)
Reverted
AcceptedOnL2
Transaction passed the validation and entered a created block
AcceptedOnL1
Transaction was accepted on-chain
Implementations§
Source§impl TransactionStatus
impl TransactionStatus
Sourcepub const fn is_not_received(&self) -> bool
pub const fn is_not_received(&self) -> bool
Returns true if the transaction status is NotReceived.
Sourcepub const fn is_received(&self) -> bool
pub const fn is_received(&self) -> bool
Returns true if the transaction status is Received.
Sourcepub const fn is_pending(&self) -> bool
pub const fn is_pending(&self) -> bool
Returns true if the transaction status is Pending.
Sourcepub const fn is_rejected(&self) -> bool
pub const fn is_rejected(&self) -> bool
Returns true if the transaction status is Rejected.
Sourcepub const fn is_reverted(&self) -> bool
pub const fn is_reverted(&self) -> bool
Returns true if the transaction status is Reverted.
Sourcepub const fn is_accepted_on_l2(&self) -> bool
pub const fn is_accepted_on_l2(&self) -> bool
Returns true if the transaction status is AcceptedOnL2.
Sourcepub const fn is_accepted_on_l1(&self) -> bool
pub const fn is_accepted_on_l1(&self) -> bool
Returns true if the transaction status is AcceptedOnL1.
Trait Implementations§
Source§impl Debug for TransactionStatus
impl Debug for TransactionStatus
Source§impl<'de> Deserialize<'de> for TransactionStatus
impl<'de> Deserialize<'de> for TransactionStatus
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TransactionStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TransactionStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TransactionStatus
impl PartialEq for TransactionStatus
impl Eq for TransactionStatus
impl StructuralPartialEq for TransactionStatus
Auto Trait Implementations§
impl Freeze for TransactionStatus
impl RefUnwindSafe for TransactionStatus
impl Send for TransactionStatus
impl Sync for TransactionStatus
impl Unpin for TransactionStatus
impl UnwindSafe for TransactionStatus
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<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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.