pub enum BlockAccessPhase {
PreExecution,
Transaction(usize),
PostExecution,
}Expand description
Classification of a BlockAccessIndex within a block.
See BlockAccessIndex::phase for how indices map to phases.
Variants§
PreExecution
Pre-execution slot (index 0).
Transaction(usize)
Transaction execution slot. The inner value is the 0-based transaction index
within the block (i.e. block_access_index - 1).
PostExecution
Post-execution slot (index tx_len + 1).
Trait Implementations§
Source§impl Clone for BlockAccessPhase
impl Clone for BlockAccessPhase
Source§fn clone(&self) -> BlockAccessPhase
fn clone(&self) -> BlockAccessPhase
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BlockAccessPhase
Source§impl Debug for BlockAccessPhase
impl Debug for BlockAccessPhase
Source§impl<'de> Deserialize<'de> for BlockAccessPhase
impl<'de> Deserialize<'de> for BlockAccessPhase
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BlockAccessPhase, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BlockAccessPhase, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BlockAccessPhase
Source§impl Hash for BlockAccessPhase
impl Hash for BlockAccessPhase
Source§impl PartialEq for BlockAccessPhase
impl PartialEq for BlockAccessPhase
Source§fn eq(&self, other: &BlockAccessPhase) -> bool
fn eq(&self, other: &BlockAccessPhase) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BlockAccessPhase
impl Serialize for BlockAccessPhase
Source§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 StructuralPartialEq for BlockAccessPhase
Auto Trait Implementations§
impl Freeze for BlockAccessPhase
impl RefUnwindSafe for BlockAccessPhase
impl Send for BlockAccessPhase
impl Sync for BlockAccessPhase
impl Unpin for BlockAccessPhase
impl UnsafeUnpin for BlockAccessPhase
impl UnwindSafe for BlockAccessPhase
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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: 16 bytes
Size for each variant:
PreExecution: 0 bytesTransaction: 8 bytesPostExecution: 0 bytes