MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / next

Method next

nodedb/src/control/startup/phase.rs:89–104  ·  view source on GitHub ↗

Next phase in the sequence, or `None` for terminal states.

(self)

Source from the content-addressed store, hash-verified

87
88 /// Next phase in the sequence, or `None` for terminal states.
89 pub const fn next(self) -> Option<Self> {
90 match self {
91 Self::Boot => Some(Self::WalRecovery),
92 Self::WalRecovery => Some(Self::ClusterCatalogOpen),
93 Self::ClusterCatalogOpen => Some(Self::RaftMetadataReplay),
94 Self::RaftMetadataReplay => Some(Self::SchemaCacheWarmup),
95 Self::SchemaCacheWarmup => Some(Self::CatalogSanityCheck),
96 Self::CatalogSanityCheck => Some(Self::DataGroupsReplay),
97 Self::DataGroupsReplay => Some(Self::TransportBind),
98 Self::TransportBind => Some(Self::WarmPeers),
99 Self::WarmPeers => Some(Self::HealthLoopStart),
100 Self::HealthLoopStart => Some(Self::GatewayEnable),
101 Self::GatewayEnable => None,
102 Self::Failed => None,
103 }
104 }
105
106 /// Decode from a `u8` — used by the `AtomicU8`-backed
107 /// sequencer state.

Callers 15

decode_arrow_ipcFunction · 0.45
is_side_effect_sqlFunction · 0.45
convert_lateral_top_kFunction · 0.45
convert_lateral_loopFunction · 0.45
build_schema_bytesFunction · 0.45
convert_joinFunction · 0.45
parse_hourFunction · 0.45
tokenizeFunction · 0.45
check_valueFunction · 0.45

Calls

no outgoing calls