pub struct ThreadHandle {
pub thread_id: ThreadId,
/* private fields */
}Fields§
§thread_id: ThreadIdImplementations§
Source§impl ThreadHandle
impl ThreadHandle
pub fn runtime(&self) -> &Runtime
pub async fn turn_start( &self, p: TurnStartParams, ) -> Result<TurnHandle, RpcError>
Sourcepub async fn turn_steer(
&self,
expected_turn_id: &str,
input: Vec<InputItem>,
) -> Result<TurnId, RpcError>
pub async fn turn_steer( &self, expected_turn_id: &str, input: Vec<InputItem>, ) -> Result<TurnId, RpcError>
Start a follow-up turn anchored to an expected previous turn id. Allocation: JSON params + input item wire objects. Complexity: O(n), n = input item count.
pub async fn turn_interrupt(&self, turn_id: &str) -> Result<(), RpcError>
Trait Implementations§
Source§impl Clone for ThreadHandle
impl Clone for ThreadHandle
Source§fn clone(&self) -> ThreadHandle
fn clone(&self) -> ThreadHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ThreadHandle
impl !RefUnwindSafe for ThreadHandle
impl Send for ThreadHandle
impl Sync for ThreadHandle
impl Unpin for ThreadHandle
impl UnsafeUnpin for ThreadHandle
impl !UnwindSafe for ThreadHandle
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