pub struct ProcessExecutor { /* private fields */ }Expand description
Runs each work item in a process: hlock’s Python worker, or a command backend. The
request and response are files in the item’s workdir, named after the command.
Implementations§
Trait Implementations§
Source§impl Executor for ProcessExecutor
impl Executor for ProcessExecutor
Source§fn describe(&self, req: &TaskRequest) -> Result<Describe>
fn describe(&self, req: &TaskRequest) -> Result<Describe>
What this backend runs (
backend.describe).Source§fn call(&self, req: &TaskRequest) -> Result<TaskResult>
fn call(&self, req: &TaskRequest) -> Result<TaskResult>
Run one work item.
Auto Trait Implementations§
impl Forget for ProcessExecutor
impl Freeze for ProcessExecutor
impl Move for ProcessExecutor
impl RefUnwindSafe for ProcessExecutor
impl Send for ProcessExecutor
impl Sync for ProcessExecutor
impl Unpin for ProcessExecutor
impl UnsafeUnpin for ProcessExecutor
impl UnwindSafe for ProcessExecutor
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