pub enum OutboxStatus {
Pending,
Claimed,
Done,
Failed,
Cancelled,
}Expand description
Lifecycle state of an outbox row as the dispatcher drives it to a terminal outcome.
Rows are inserted Pending, transitioned to Claimed while a dispatcher holds them, and end
in Done (dispatched and acknowledged) or Failed (retry budget exhausted). Failed is a
dead-letter marker for operator inspection; the dispatcher never re-claims it.
Variants§
Pending
Awaiting a dispatcher claim once visible_after has passed.
Claimed
Claimed by a dispatcher and in flight.
Done
Dispatched and acknowledged; terminal.
Failed
Retry budget exhausted; terminal dead letter.
Cancelled
Cancelled by workflow history before dispatch completed; terminal.
Implementations§
Source§impl OutboxStatus
impl OutboxStatus
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
Returns the canonical lowercase token persisted in the status column.
Sourcepub fn parse_token(value: &str) -> Result<Self, StoreError>
pub fn parse_token(value: &str) -> Result<Self, StoreError>
Parses a persisted status token back into an OutboxStatus.
§Errors
Returns StoreError::Serialization when value is not one of the four canonical tokens.
Trait Implementations§
Source§impl Clone for OutboxStatus
impl Clone for OutboxStatus
Source§fn clone(&self) -> OutboxStatus
fn clone(&self) -> OutboxStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more