pub struct GraphHandle(/* private fields */);Expand description
A built graph: runs, starts, resumes and streams, as the kit’s BuiltGraph.
Wraps the neutral GraphHandle; every method forwards unchanged.
Safe to share between threads.
Implementations§
Source§impl GraphHandle
impl GraphHandle
pub async fn run(&self, input: String) -> Result<String, TroupekitError>
pub async fn run_result( &self, input: String, ) -> Result<GraphResult, TroupekitError>
pub async fn start(&self, input: String) -> Result<String, TroupekitError>
pub async fn resume(&self, run_id: String) -> Result<String, TroupekitError>
pub async fn resume_for( &self, run_id: String, budget_ms: u64, ) -> Result<Progress, TroupekitError>
pub async fn stream( &self, input: String, ) -> Result<Arc<RunStream>, TroupekitError>
Trait Implementations§
Source§impl Debug for GraphHandle
impl Debug for GraphHandle
Source§impl<UT> LiftRef<UT> for GraphHandle
impl<UT> LiftRef<UT> for GraphHandle
type LiftType = Arc<GraphHandle>
Source§impl<UT> LowerError<UT> for GraphHandle
impl<UT> LowerError<UT> for GraphHandle
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 GraphHandle
impl<UT> LowerReturn<UT> for GraphHandle
Source§type ReturnType = <Arc<GraphHandle> as LowerReturn<UniFfiTag>>::ReturnType
type ReturnType = <Arc<GraphHandle> 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
Source§impl<UT> TypeId<UT> for GraphHandle
impl<UT> TypeId<UT> for GraphHandle
Auto Trait Implementations§
impl !RefUnwindSafe for GraphHandle
impl !UnwindSafe for GraphHandle
impl Forget for GraphHandle
impl Freeze for GraphHandle
impl Move for GraphHandle
impl Send for GraphHandle
impl Sync for GraphHandle
impl Unpin for GraphHandle
impl UnsafeUnpin for GraphHandlewhere
*const ArcInner<GraphHandle> is !null: UnsafeUnpin,
PhantomData<ArcInner<GraphHandle>>: UnsafeUnpin,
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