pub struct Job { /* private fields */ }Expand description
A handle to a running job, joined on the borrower’s teardown path.
Implementations§
Source§impl Job
impl Job
Sourcepub fn join(self) -> Result<()>
pub fn join(self) -> Result<()>
Block until the job returns, yielding whether it panicked.
A dropped sender (the worker gone at teardown after the job was taken)
reads as a clean completion: there is no unwind to report and nothing to
tear down twice. A job that was never dispatched at all is not clean —
it reports NEVER_DISPATCHED, because a borrower that is told its
body succeeded when it never ran is the same silent loss as a dropped
panic payload.
Auto Trait Implementations§
impl !Sync for Job
impl Freeze for Job
impl RefUnwindSafe for Job
impl Send for Job
impl Unpin for Job
impl UnsafeUnpin for Job
impl UnwindSafe for Job
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