pub struct ExecutorResult { /* private fields */ }
Expand description
The result of running the job on the executor
Implementations§
Source§impl ExecutorResult
impl ExecutorResult
Sourcepub fn new_ok(job_idx: NodeIndex) -> Self
pub fn new_ok(job_idx: NodeIndex) -> Self
Signals that job number job_idx
has run succesfully.
job_idx
must come from ToRun::job_idx()
.
Sourcepub fn new_error(job_idx: NodeIndex, err: String) -> Self
pub fn new_error(job_idx: NodeIndex, err: String) -> Self
Signals that job number job_idx
has failed.
job_idx
must come from ToRun::job_idx()
, and err
describes
what went wrong.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExecutorResult
impl RefUnwindSafe for ExecutorResult
impl Send for ExecutorResult
impl Sync for ExecutorResult
impl Unpin for ExecutorResult
impl UnwindSafe for ExecutorResult
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