pub struct JobController {
pub abort_tx: Sender<()>,
pub stop_tx: Sender<()>,
pub resume_tx: Sender<()>,
}Expand description
Control-plane senders for a running job, kept by actor_system_loop
and looked up by job_id when the user calls abort_job / stop_job
/ resume_job. Each channel carries () signals only; the job loop
awakens via tokio::select! and decides what to do.
Users don’t construct or inspect this directly — it lives behind the
abort_job / stop_job / resume_job methods on ActorSystem.
Fields§
§abort_tx: Sender<()>Signal the job loop to exit immediately. Honored at every wait
point (start_at, pause-for-resume, inter-iteration sleep).
stop_tx: Sender<()>Signal the job loop to pause after the current iteration. The
loop then waits on resume_tx (or abort_tx) before continuing.
resume_tx: Sender<()>Signal a stopped job to continue iterating.
Trait Implementations§
Source§impl Clone for JobController
impl Clone for JobController
Source§fn clone(&self) -> JobController
fn clone(&self) -> JobController
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 moreAuto Trait Implementations§
impl Freeze for JobController
impl RefUnwindSafe for JobController
impl Send for JobController
impl Sync for JobController
impl Unpin for JobController
impl UnsafeUnpin for JobController
impl UnwindSafe for JobController
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