pub struct TaskEventEnvelope {
pub id: Option<String>,
pub event: TaskEvent,
}Expand description
Envelope for a task event, associating an event with a unique identifier.
TaskEventEnvelope is used to wrap a TaskEvent with an associated id,
which typically represents the logical task or job this event belongs to.
This is useful in systems where multiple tasks are running concurrently and
events from different tasks need to be distinguished or routed by their id.
§Fields
id- Unique identifier for the task or job (e.g., UUID, name, or handle)event- The actual event describing a state change or output for the task
Fields§
§id: Option<String>Unique identifier for the task or job (e.g., UUID, name)
event: TaskEventThe actual event describing a state change or output for the task
Trait Implementations§
Source§impl Clone for TaskEventEnvelope
impl Clone for TaskEventEnvelope
Source§fn clone(&self) -> TaskEventEnvelope
fn clone(&self) -> TaskEventEnvelope
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 TaskEventEnvelope
impl Debug for TaskEventEnvelope
Source§impl PartialEq for TaskEventEnvelope
impl PartialEq for TaskEventEnvelope
impl StructuralPartialEq for TaskEventEnvelope
Auto Trait Implementations§
impl Freeze for TaskEventEnvelope
impl RefUnwindSafe for TaskEventEnvelope
impl Send for TaskEventEnvelope
impl Sync for TaskEventEnvelope
impl Unpin for TaskEventEnvelope
impl UnwindSafe for TaskEventEnvelope
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