pub struct RunHandle {
pub result: JoinHandle<Result<RunResult>>,
pub cancel: CancellationToken,
}Expand description
Handle returned by run() — allows awaiting the result or aborting.
Fields§
§result: JoinHandle<Result<RunResult>>§cancel: CancellationTokenImplementations§
Auto Trait Implementations§
impl Freeze for RunHandle
impl RefUnwindSafe for RunHandle
impl Send for RunHandle
impl Sync for RunHandle
impl Unpin for RunHandle
impl UnsafeUnpin for RunHandle
impl UnwindSafe for RunHandle
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