pub struct TaskEntry {
pub task: Arc<dyn SupervisedTask>,
pub setup_tx: Sender<Option<Result<(), String>>>,
pub control_tx: Sender<ControlMessage>,
}Expand description
Internal handle combining a task with its communication channels
Fields§
§task: Arc<dyn SupervisedTask>§setup_tx: Sender<Option<Result<(), String>>>Watch channel sender that signals when this task’s setup completes. Uses watch instead of broadcast to ensure late subscribers can see the final state (setup success/failure) even if it happened before subscription.
control_tx: Sender<ControlMessage>Channel for sending control messages to the supervisor loop for this task
Auto Trait Implementations§
impl !RefUnwindSafe for TaskEntry
impl !UnwindSafe for TaskEntry
impl Freeze for TaskEntry
impl Send for TaskEntry
impl Sync for TaskEntry
impl Unpin for TaskEntry
impl UnsafeUnpin for TaskEntry
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