pub struct RunHandle { /* private fields */ }Expand description
Controls a running run. Cheap to clone, Send + Sync.
Implementations§
Source§impl RunHandle
impl RunHandle
Sourcepub fn abort(&self, reason: impl Into<String>)
pub fn abort(&self, reason: impl Into<String>)
Cancel immediately: in-flight nodes are dropped. Ends with RunAborted.
Sourcepub fn pause(&self, reason: impl Into<String>)
pub fn pause(&self, reason: impl Into<String>)
Stop scheduling new nodes, let in-flight nodes finish, then end with RunPaused
(or RunSucceeded if nothing was left to run).
Sourcepub fn update_variable(&self, selector: Selector, value: Value)
pub fn update_variable(&self, selector: Selector, value: Value)
Write a variable into the root frame (applied between node completions).
Trait Implementations§
Auto Trait Implementations§
impl Forget for RunHandle
impl Freeze for RunHandle
impl Move 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