pub struct RunResult {
pub stop_reason: StopReason,
pub steering: UnboundedReceiver<AgentMessage>,
pub follow_ups: UnboundedReceiver<AgentMessage>,
}Expand description
Return value of run_loop: the stop reason plus the two input channels
that were lent in, handed back so messages queued but never drained (e.g. a
follow-up sent while the loop was on its final turn) survive the run
boundary instead of being dropped when the caller re-pairs channels.
Fields§
§stop_reason: StopReason§steering: UnboundedReceiver<AgentMessage>§follow_ups: UnboundedReceiver<AgentMessage>Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunResult
impl RefUnwindSafe for RunResult
impl Send for RunResult
impl Sync for RunResult
impl Unpin for RunResult
impl UnsafeUnpin for RunResult
impl UnwindSafe for RunResult
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