pub struct TaskGoalJobs { /* private fields */ }Expand description
GoalJobs over the worker’s task journal and shell: a goal job is a background-job@1 task admitted through
TaskHost::spawn with the goal’s run key, and a check is the host’s blocking bash.
Implementations§
Source§impl TaskGoalJobs
impl TaskGoalJobs
pub fn new( tasks: Arc<dyn TaskHost>, shell: Arc<dyn HostHandler>, ) -> TaskGoalJobs
Trait Implementations§
Source§impl GoalJobs for TaskGoalJobs
impl GoalJobs for TaskGoalJobs
Source§fn start_job(
&self,
prompt: &str,
key: &str,
_usage_root: &str,
) -> Result<String, String>
fn start_job( &self, prompt: &str, key: &str, _usage_root: &str, ) -> Result<String, String>
The usage root is not passed: TaskHost::spawn charges the job to its admission root.
fn run_check( &self, command: &str, timeout_seconds: u64, ) -> Result<GoalCheckResult, String>
fn stop_job(&self, task_id: &str, reason: &str) -> Result<(), String>
fn lane_of_job(&self, task_id: &str) -> Option<String>
Auto Trait Implementations§
impl !RefUnwindSafe for TaskGoalJobs
impl !UnwindSafe for TaskGoalJobs
impl Forget for TaskGoalJobs
impl Freeze for TaskGoalJobs
impl Move for TaskGoalJobs
impl Send for TaskGoalJobs
impl Sync for TaskGoalJobs
impl Unpin for TaskGoalJobs
impl UnsafeUnpin for TaskGoalJobs
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