pub enum QueueEvent {
JobInserted(Ulid),
JobCompleted(Ulid, JobStatus, JobResult),
JobFailed(Ulid, u32),
JobReady(Ulid),
JobCancelled(Ulid),
}Expand description
Events published by the QueueStore via broadcast.
Consumed by:
- SSE endpoint
GET /api/v1/jobs/events - Cascade engine (
find_awaiting+set_pending) - Real-time monitoring dashboard
Variants§
JobInserted(Ulid)
New job inserted — Pending or Waiting.
JobCompleted(Ulid, JobStatus, JobResult)
Job completed — Done or DLQ.
JobFailed(Ulid, u32)
Job failed — Failed + attempt number.
JobReady(Ulid)
Job transitioned Waiting → Pending (cascade satisfied).
JobCancelled(Ulid)
Job cancelled — deadline or orphaned.
Trait Implementations§
Source§impl Clone for QueueEvent
impl Clone for QueueEvent
Source§fn clone(&self) -> QueueEvent
fn clone(&self) -> QueueEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 QueueEvent
impl Debug for QueueEvent
Source§impl<'de> Deserialize<'de> for QueueEvent
impl<'de> Deserialize<'de> for QueueEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for QueueEvent
impl RefUnwindSafe for QueueEvent
impl Send for QueueEvent
impl Sync for QueueEvent
impl Unpin for QueueEvent
impl UnsafeUnpin for QueueEvent
impl UnwindSafe for QueueEvent
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