pub enum Output {
Show 13 variants
Send(NodeId, RaftRpc),
Reply(NodeId, RaftRpcReply),
Apply(Committed),
RoleChanged(Role),
ReadReady {
id: ReadId,
index: LogIndex,
},
ReadFailed {
id: ReadId,
},
LoadSnapshot {
index: LogIndex,
data: Vec<u8>,
},
CatalogApplied {
index: LogIndex,
command: CatalogCommand,
},
SagaJournalApplied {
index: LogIndex,
command: SagaJournalCommand,
},
TwoPhasePrepareApplied {
index: LogIndex,
command: TwoPhasePrepareCommand,
},
TwoPhaseAbortApplied {
index: LogIndex,
command: TwoPhaseAbortCommand,
},
TwoPhaseJournalApplied {
index: LogIndex,
command: TwoPhaseJournalCommand,
},
QueueAutoscalePolicyApplied {
index: LogIndex,
command: QueueAutoscalePolicyCommand,
},
}Expand description
An effect produced by the core for the runtime to execute.
Variants§
Send(NodeId, RaftRpc)
Send a request RPC to a peer.
Reply(NodeId, RaftRpcReply)
Reply to a peer’s request RPC.
Apply(Committed)
A committed command to apply, in index order.
RoleChanged(Role)
The node changed role (useful for observability and tests).
ReadReady
A ReadIndex read is safe to serve: the state machine at index (or
later) reflects everything committed before the request (read-consistency).
ReadFailed
A pending read could not be honored (leadership was lost); retry it against the new leader.
LoadSnapshot
Load a snapshot installed from the leader into the application state
machine, replacing all state through index (Raft §7).
Fields
CatalogApplied
A committed catalog metadata entry (Tier 2; not applied to the user SM).
Fields
command: CatalogCommandCatalog command committed at index.
SagaJournalApplied
A committed saga journal entry (Tier 2 v2; not applied to the user SM).
Fields
command: SagaJournalCommandSaga journal command committed at index.
TwoPhasePrepareApplied
A committed durable 2PC prepare entry (not applied to the user SM).
Fields
command: TwoPhasePrepareCommandPrepare command committed at index.
TwoPhaseAbortApplied
A committed durable 2PC abort entry (not applied to the user SM).
Fields
command: TwoPhaseAbortCommandAbort command committed at index.
TwoPhaseJournalApplied
A committed 2PC client journal entry (not applied to the user SM).
Fields
command: TwoPhaseJournalCommandJournal command committed at index.
QueueAutoscalePolicyApplied
A committed queue autoscale policy entry (Meta-Raft; not applied to the user SM).
Fields
command: QueueAutoscalePolicyCommandPolicy command committed at index.