pub struct JoinHandle<F: Future> { /* private fields */ }
Expand description
A potentially running Work.
This encapsulates a Future that is potentially running in the Zephyr work queue system.
§Safety
Once the worker has been started (meaning once WorkBuilder::start returns this Work
), all
but one field here is owned by the worker itself (it runs on the worker thread, hence the
Send constraint). The exception is the ‘answer’ field which can be used by the caller to
wait for the Work to finish.
Implementations§
Source§impl<F: Future> JoinHandle<F>
impl<F: Future> JoinHandle<F>
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for JoinHandle<F>
impl<F> !RefUnwindSafe for JoinHandle<F>
impl<F> Sync for JoinHandle<F>
impl<F> Unpin for JoinHandle<F>
impl<F> !UnwindSafe for JoinHandle<F>
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