pub struct RunHandle { /* private fields */ }Expand description
Controls one run.
Implementations§
Source§impl RunHandle
impl RunHandle
Sourcepub fn pause(&self, reason: String)
pub fn pause(&self, reason: String)
Stop scheduling new nodes; the run ends with status paused and a snapshot.
Sourcepub fn update_variable(
&self,
selector: String,
value_json: String,
) -> Result<(), GraphrtError>
pub fn update_variable( &self, selector: String, value_json: String, ) -> Result<(), GraphrtError>
Write a variable ("conversation.topic") while the run is in progress.
pub fn is_finished(&self) -> bool
Trait Implementations§
Source§impl<UT> LowerError<UT> for RunHandle
impl<UT> LowerError<UT> for RunHandle
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Lower this value for scaffolding function return Read more
Source§impl<UT> LowerReturn<UT> for RunHandle
impl<UT> LowerReturn<UT> for RunHandle
Source§type ReturnType = <Arc<RunHandle> as LowerReturn<UniFfiTag>>::ReturnType
type ReturnType = <Arc<RunHandle> as LowerReturn<UniFfiTag>>::ReturnType
The type that should be returned by scaffolding functions for this type. Read more
Source§fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
Lower the return value from an scaffolding call Read more
Source§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Lower the return value for failed argument lifts Read more
Auto Trait Implementations§
impl !Freeze for RunHandle
impl Forget for RunHandle
impl Move for RunHandle
impl RefUnwindSafe for RunHandlewhere
Atomic<usize>: RefUnwindSafe,
Atomic<u64>: RefUnwindSafe,
Atomic<bool>: RefUnwindSafe,
Mutex<Option<Stop>>: RefUnwindSafe,
Mutex<Vec<PauseReason>>: RefUnwindSafe,
Mutex<Vec<(Selector, Value)>>: RefUnwindSafe,
Mutex<Vec<Waker>>: RefUnwindSafe,
Mutex<Option<String>>: RefUnwindSafe,
Condvar: RefUnwindSafe,
impl Send for RunHandle
impl Sync for RunHandle
impl Unpin for RunHandle
impl UnsafeUnpin for RunHandlewhere
*const ArcInner<Control> is !null: UnsafeUnpin,
PhantomData<ArcInner<Control>>: UnsafeUnpin,
Align4<u32>: UnsafeUnpin,
Align1<u8>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
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