Enum NonceIndex
pub enum NonceIndex {
Base = 0,
BaseToShard = 1,
Execution = 2,
Migration = 3,
}Expand description
Index for per-transaction-type nonces. Each top-level transaction type has its own independent nonce sequence.
Variants§
Base = 0
Nonce for base layer transactions; see crate::transaction::types::base::BaseTransactionType.
BaseToShard = 1
Nonce for base-to-shard transfer transactions; see crate::transaction::types::base_to_shard::BaseToShardTransactionType.
Execution = 2
Nonce for execution/state diff transactions; see crate::transaction::types::state_diff::StateDiffTransactionType.
Migration = 3
Nonce for migration transactions; see crate::transaction::types::migration::MigrationTransactionType.
Trait Implementations§
§impl Clone for NonceIndex
impl Clone for NonceIndex
§fn clone(&self) -> NonceIndex
fn clone(&self) -> NonceIndex
Returns a duplicate 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 more§impl Debug for NonceIndex
impl Debug for NonceIndex
§impl<'de> Deserialize<'de> for NonceIndex
impl<'de> Deserialize<'de> for NonceIndex
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NonceIndex, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NonceIndex, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl EnumCount for NonceIndex
impl EnumCount for NonceIndex
§impl Hash for NonceIndex
impl Hash for NonceIndex
§impl PartialEq for NonceIndex
impl PartialEq for NonceIndex
§impl Serialize for NonceIndex
impl Serialize for NonceIndex
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for NonceIndex
impl Eq for NonceIndex
impl StructuralPartialEq for NonceIndex
Auto Trait Implementations§
impl Freeze for NonceIndex
impl RefUnwindSafe for NonceIndex
impl Send for NonceIndex
impl Sync for NonceIndex
impl Unpin for NonceIndex
impl UnwindSafe for NonceIndex
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.§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
§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
Compare self to
key and return true if they are equal.§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
§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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request