pub enum StageId {
Show 18 variants
StaticFile,
MerkleChangeSets,
Era,
Headers,
Bodies,
SenderRecovery,
Execution,
PruneSenderRecovery,
MerkleUnwind,
AccountHashing,
StorageHashing,
MerkleExecute,
TransactionLookup,
IndexStorageHistory,
IndexAccountHistory,
Prune,
Finish,
Other(&'static str),
}Expand description
Stage IDs for all known stages.
For custom stages, use StageId::Other
Variants§
StaticFile
Static Files are generated outside of the pipeline and do not require a separate stage
MerkleChangeSets
MerkleChangeSets stage has been removed; kept for DB checkpoint compatibility
Era
Headers
Bodies
SenderRecovery
Execution
PruneSenderRecovery
MerkleUnwind
AccountHashing
StorageHashing
MerkleExecute
TransactionLookup
IndexStorageHistory
IndexAccountHistory
Prune
Finish
Other(&'static str)
Other custom stage with a provided string identifier.
Implementations§
Source§impl StageId
impl StageId
Sourcepub const STATE_REQUIRED: [StageId; 9]
pub const STATE_REQUIRED: [StageId; 9]
Stages that require state.
Sourcepub const fn is_downloading_stage(&self) -> bool
pub const fn is_downloading_stage(&self) -> bool
Returns true if it’s a downloading stage StageId::Headers or StageId::Bodies
Sourcepub const fn is_tx_lookup(&self) -> bool
pub const fn is_tx_lookup(&self) -> bool
Returns true if it’s TransactionLookup stage.
Sourcepub const fn is_finish(&self) -> bool
pub const fn is_finish(&self) -> bool
Returns true indicating if it’s the finish stage StageId::Finish
Sourcepub fn get_pre_encoded(&self) -> Option<&Vec<u8>>
pub fn get_pre_encoded(&self) -> Option<&Vec<u8>>
Get a pre-encoded raw Vec, for example, to be used as the DB key for
tables::StageCheckpoints and tables::StageCheckpointProgresses
Trait Implementations§
impl Copy for StageId
impl Eq for StageId
impl StructuralPartialEq for StageId
Auto Trait Implementations§
impl Forget for StageId
impl Freeze for StageId
impl Move for StageId
impl RefUnwindSafe for StageId
impl Send for StageId
impl Sync for StageId
impl Unpin for StageId
impl UnsafeUnpin for StageId
impl UnwindSafe for StageId
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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
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
§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> 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> ⓘ
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> ⓘ
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 moreimpl<T> MaybeDebug for Twhere
T: Debug,
§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
Source§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
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: 24 bytes
Size for each variant:
StaticFile: 0 bytesMerkleChangeSets: 0 bytesEra: 0 bytesHeaders: 0 bytesBodies: 0 bytesSenderRecovery: 0 bytesExecution: 0 bytesPruneSenderRecovery: 0 bytesMerkleUnwind: 0 bytesAccountHashing: 0 bytesStorageHashing: 0 bytesMerkleExecute: 0 bytesTransactionLookup: 0 bytesIndexStorageHistory: 0 bytesIndexAccountHistory: 0 bytesPrune: 0 bytesFinish: 0 bytesOther: 16 bytes