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 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