pub struct AsyncTurnHandle {
pub thread_id: String,
pub id: String,
/* private fields */
}Expand description
Control handle for an active asynchronous turn.
Fields§
§thread_id: String§id: StringImplementations§
Source§impl AsyncTurnHandle
impl AsyncTurnHandle
pub async fn steer(&self, input: impl Into<Input>) -> Result<TurnSteerResponse>
pub async fn interrupt(&self) -> Result<TurnInterruptResponse>
pub fn stream(&self) -> Result<TurnStream>
pub async fn run(&self) -> Result<TurnResult>
Trait Implementations§
Source§impl Debug for AsyncTurnHandle
impl Debug for AsyncTurnHandle
Source§impl Drop for AsyncTurnHandle
impl Drop for AsyncTurnHandle
Auto Trait Implementations§
impl !Freeze for AsyncTurnHandle
impl !RefUnwindSafe for AsyncTurnHandle
impl !UnwindSafe for AsyncTurnHandle
impl Send for AsyncTurnHandle
impl Sync for AsyncTurnHandle
impl Unpin for AsyncTurnHandle
impl UnsafeUnpin for AsyncTurnHandle
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