Skip to main content

TuiSessionDriver

Trait TuiSessionDriver 

Source
pub trait TuiSessionDriver {
    type Command: TuiCommand;
    type Event;

Show 20 methods // Required methods fn handle_command(&mut self, command: Self::Command); fn handle_event( &mut self, event: Event, events: &UnboundedSender<Self::Event>, callback: Option<&(dyn Fn(&Self::Event) + Send + Sync + 'static)>, ); fn handle_tick(&mut self); fn render(&mut self, frame: &mut Frame<'_>); fn take_redraw(&mut self) -> bool; fn use_steady_cursor(&self) -> bool; fn should_exit(&self) -> bool; fn request_exit(&mut self); fn mark_dirty(&mut self); fn update_terminal_title(&mut self); fn clear_terminal_title(&mut self); fn is_running_activity(&self) -> bool; fn has_status_spinner(&self) -> bool; fn thinking_spinner_active(&self) -> bool; fn has_active_navigation_ui(&self) -> bool; fn apply_coalesced_scroll(&mut self, line_delta: i32, page_delta: i32); fn set_show_logs(&mut self, show: bool); fn set_active_pty_sessions(&mut self, sessions: Option<Arc<AtomicUsize>>); fn set_workspace_root(&mut self, root: Option<PathBuf>); fn set_log_receiver(&mut self, receiver: UnboundedReceiver<LogEntry>);
}

Required Associated Types§

Required Methods§

Source

fn handle_command(&mut self, command: Self::Command)

Source

fn handle_event( &mut self, event: Event, events: &UnboundedSender<Self::Event>, callback: Option<&(dyn Fn(&Self::Event) + Send + Sync + 'static)>, )

Source

fn handle_tick(&mut self)

Source

fn render(&mut self, frame: &mut Frame<'_>)

Source

fn take_redraw(&mut self) -> bool

Source

fn use_steady_cursor(&self) -> bool

Source

fn should_exit(&self) -> bool

Source

fn request_exit(&mut self)

Source

fn mark_dirty(&mut self)

Source

fn update_terminal_title(&mut self)

Source

fn clear_terminal_title(&mut self)

Source

fn is_running_activity(&self) -> bool

Source

fn has_status_spinner(&self) -> bool

Source

fn thinking_spinner_active(&self) -> bool

Source

fn has_active_navigation_ui(&self) -> bool

Source

fn apply_coalesced_scroll(&mut self, line_delta: i32, page_delta: i32)

Source

fn set_show_logs(&mut self, show: bool)

Source

fn set_active_pty_sessions(&mut self, sessions: Option<Arc<AtomicUsize>>)

Source

fn set_workspace_root(&mut self, root: Option<PathBuf>)

Source

fn set_log_receiver(&mut self, receiver: UnboundedReceiver<LogEntry>)

Implementors§