Skip to main content

Output

Enum Output 

Source
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).

Fields

§id: ReadId

The client’s read token.

§index: LogIndex

The confirmed read index.

§

ReadFailed

A pending read could not be honored (leadership was lost); retry it against the new leader.

Fields

§id: ReadId

The client’s read token.

§

LoadSnapshot

Load a snapshot installed from the leader into the application state machine, replacing all state through index (Raft §7).

Fields

§index: LogIndex

Last log index the snapshot includes.

§data: Vec<u8>

Opaque application snapshot bytes.

§

CatalogApplied

A committed catalog metadata entry (Tier 2; not applied to the user SM).

Fields

§index: LogIndex

Log index of the catalog entry.

§command: CatalogCommand

Catalog command committed at index.

§

SagaJournalApplied

A committed saga journal entry (Tier 2 v2; not applied to the user SM).

Fields

§index: LogIndex

Log index of the saga journal entry.

§command: SagaJournalCommand

Saga journal command committed at index.

§

TwoPhasePrepareApplied

A committed durable 2PC prepare entry (not applied to the user SM).

Fields

§index: LogIndex

Log index of the prepare entry.

§command: TwoPhasePrepareCommand

Prepare command committed at index.

§

TwoPhaseAbortApplied

A committed durable 2PC abort entry (not applied to the user SM).

Fields

§index: LogIndex

Log index of the abort entry.

§command: TwoPhaseAbortCommand

Abort command committed at index.

§

TwoPhaseJournalApplied

A committed 2PC client journal entry (not applied to the user SM).

Fields

§index: LogIndex

Log index of the journal entry.

§command: TwoPhaseJournalCommand

Journal command committed at index.

§

QueueAutoscalePolicyApplied

A committed queue autoscale policy entry (Meta-Raft; not applied to the user SM).

Fields

§index: LogIndex

Log index of the policy entry.

§command: QueueAutoscalePolicyCommand

Policy command committed at index.

Trait Implementations§

Source§

impl Clone for Output

Source§

fn clone(&self) -> Output

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Output

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Output

Source§

impl PartialEq for Output

Source§

fn eq(&self, other: &Output) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Output

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more