pub enum WorkEvent {
Enqueued {
id: String,
work_type: String,
},
Claimed {
id: String,
agent_id: String,
},
Started {
id: String,
},
Completed {
id: String,
success: bool,
},
Cancelled {
id: String,
},
}Expand description
Events emitted by the work queue.
Variants§
Enqueued
A work item was added to the queue.
Claimed
A work item was claimed by an agent.
Started
Claimed work began executing.
Completed
A work item finished.
Cancelled
A work item was cancelled.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WorkEvent
impl<'de> Deserialize<'de> for WorkEvent
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 WorkEvent
impl RefUnwindSafe for WorkEvent
impl Send for WorkEvent
impl Sync for WorkEvent
impl Unpin for WorkEvent
impl UnsafeUnpin for WorkEvent
impl UnwindSafe for WorkEvent
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