pub enum EventStatus {
Pending,
Processing,
Sent,
}Expand description
Lifecycle stage of an outbox Event.
A row moves forward through the variants and never steps backwards on a happy path:
Pending → Processing → SentWhen the sqlx feature is enabled, this enum maps to a Postgres type
named status with PascalCase variant names.
Variants§
Pending
Newly written row awaiting a worker. Includes both freshly inserted events and rows whose processing lock expired (making them eligible for retry).
Processing
A worker has claimed the row and is currently attempting to publish it.
The lock is held until Event::locked_until.
Sent
The event has been successfully published to the transport. Rows in this state are eventually removed by the garbage collector.
Trait Implementations§
Source§impl Clone for EventStatus
impl Clone for EventStatus
Source§fn clone(&self) -> EventStatus
fn clone(&self) -> EventStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EventStatus
impl Debug for EventStatus
Source§impl PartialEq for EventStatus
impl PartialEq for EventStatus
impl StructuralPartialEq for EventStatus
Auto Trait Implementations§
impl Freeze for EventStatus
impl RefUnwindSafe for EventStatus
impl Send for EventStatus
impl Sync for EventStatus
impl Unpin for EventStatus
impl UnsafeUnpin for EventStatus
impl UnwindSafe for EventStatus
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
Mutably borrows from an owned value. Read more