pub struct EventLoop {
pub rx: Receiver<TuiEvent>,
pub app_tx: Sender<ApprovalResult>,
pub cmd_tx: Sender<(usize, String)>,
pub agent: Arc<Mutex<DeepSeekAgent>>,
pub cancel_token: Arc<Mutex<CancellationToken>>,
pub run_id: Arc<AtomicUsize>,
}Fields§
§rx: Receiver<TuiEvent>§app_tx: Sender<ApprovalResult>§cmd_tx: Sender<(usize, String)>§agent: Arc<Mutex<DeepSeekAgent>>§cancel_token: Arc<Mutex<CancellationToken>>Shared cancel token — can be cancelled without locking the agent mutex
run_id: Arc<AtomicUsize>Implementations§
Source§impl EventLoop
impl EventLoop
pub fn handle_input( &self, app: &mut App, stdout: &mut Stdout, key: KeyEvent, ) -> Result<bool>
pub fn handle_agent_event( &self, app: &mut App, stdout: &mut Stdout, agent_event: AgentEvent, full_message: &mut String, reasoning_colorizer: &mut StreamColorizer, content_colorizer: &mut StreamColorizer, ) -> Result<()>
Auto Trait Implementations§
impl Freeze for EventLoop
impl !RefUnwindSafe for EventLoop
impl Send for EventLoop
impl Sync for EventLoop
impl Unpin for EventLoop
impl UnsafeUnpin for EventLoop
impl !UnwindSafe for EventLoop
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more