pub struct ShellChrome {Show 20 fields
pub mode: ShellMode,
pub windows: Vec<WindowSummary>,
pub active_win: usize,
pub model_list: SelectList<ModelEntry>,
pub bg: BackgroundState,
pub preview_bg: BackgroundState,
pub settings_list: SelectList<BackgroundStyle>,
pub private_panes: HashSet<u32>,
pub cols: u16,
pub pane_rows: u16,
pub session_id: u32,
pub viewer_id: u32,
pub toasts: VecDeque<Toast>,
pub console_log: VecDeque<String>,
pub console_scroll: usize,
pub service_list: Vec<ServiceEntry>,
pub worker_list: Vec<WorkerEntry>,
pub worker_pool_summary: String,
pub image_list: Vec<ImageEntry>,
pub pending_picker_model: Option<String>,
/* private fields */
}Fields§
§mode: ShellMode§windows: Vec<WindowSummary>§active_win: usize§model_list: SelectList<ModelEntry>§bg: BackgroundStateBackground animation (full terminal area).
preview_bg: BackgroundStateBackground animation for the settings preview box.
settings_list: SelectList<BackgroundStyle>Settings drop-down.
private_panes: HashSet<u32>pane IDs that are private (client-owned ChatApp); used for 🔒 indicator.
cols: u16§pane_rows: u16§session_id: u32§viewer_id: u32§toasts: VecDeque<Toast>Active toast notifications.
console_log: VecDeque<String>Console log history (capped at 500 lines).
console_scroll: usizeScroll offset for console modal.
service_list: Vec<ServiceEntry>Service entries for the Service Manager modal.
worker_list: Vec<WorkerEntry>Worker/sandbox entries for the Worker Manager modal.
worker_pool_summary: StringPool summary line for the Worker Manager modal.
image_list: Vec<ImageEntry>Image list for the Images tab.
pending_picker_model: Option<String>Model ref waiting for load to complete before opening conversation picker.
Implementations§
Source§impl ShellChrome
impl ShellChrome
pub fn new( cols: u16, pane_rows: u16, session_id: u32, viewer_id: u32, windows: Vec<WindowSummary>, models: Vec<ModelEntry>, ) -> Self
Sourcepub fn update_model_status(
&mut self,
model_ref: &str,
loaded: bool,
) -> Option<RpcRequest>
pub fn update_model_status( &mut self, model_ref: &str, loaded: bool, ) -> Option<RpcRequest>
Update model loaded status (called from background polling results). Returns a follow-up RPC if a conversation picker was pending for this model.
Sourcepub fn update_windows(&mut self, server_wins: Vec<WindowSummary>) -> bool
pub fn update_windows(&mut self, server_wins: Vec<WindowSummary>) -> bool
Update window list (called when TuiService reports window changes). Merges server windows with existing client-local windows (bit-31 set).
Sourcepub fn active_pane_id(&self) -> u32
pub fn active_pane_id(&self) -> u32
Active pane ID in the currently focused window. Prefers a locally-owned private pane over the server-managed active pane, since the server intentionally keeps the non-private pane as active_pane_id to avoid publishing private content to viewers.
Sourcepub fn tick_bg(&mut self) -> bool
pub fn tick_bg(&mut self) -> bool
Tick background animations. Returns true if animated (needs redraw).
Sourcepub fn push_toast(&mut self, msg: impl Into<String>, level: ToastLevel)
pub fn push_toast(&mut self, msg: impl Into<String>, level: ToastLevel)
Push a toast notification. Also persists the message to console_log.
Sourcepub fn tick_toasts(&mut self) -> bool
pub fn tick_toasts(&mut self) -> bool
Expire stale toasts. Returns true if any expired (caller should redraw).
Sourcepub fn log_line(&mut self, line: impl Into<String>)
pub fn log_line(&mut self, line: impl Into<String>)
Append a line to the console log (capped at 500 entries).
pub fn update_service_list(&mut self, entries: Vec<ServiceEntry>)
pub fn update_worker_list( &mut self, sandboxes: Vec<WorkerEntry>, pool_summary: String, )
pub fn handle_key(&mut self, key: KeyPress) -> Vec<ChromeOutput>
Sourcepub fn update_git_op_progress(&mut self, msg: &str)
pub fn update_git_op_progress(&mut self, msg: &str)
Update git operation progress from the service layer.
Sourcepub fn update_clone_progress(&mut self, stage: &str, pct: u8)
pub fn update_clone_progress(&mut self, stage: &str, pct: u8)
Update clone progress from the service layer.
Sourcepub fn finish_clone(&mut self, success: bool, msg: String)
pub fn finish_clone(&mut self, success: bool, msg: String)
Transition clone flow to done/failed.
Sourcepub fn open_conversation_picker(
&mut self,
model_ref: String,
conversations: Vec<ConversationPickerEntry>,
)
pub fn open_conversation_picker( &mut self, model_ref: String, conversations: Vec<ConversationPickerEntry>, )
Open the conversation picker with the given entries. Called by the shell handler after loading the manifest.
Auto Trait Implementations§
impl Freeze for ShellChrome
impl RefUnwindSafe for ShellChrome
impl Send for ShellChrome
impl Sync for ShellChrome
impl Unpin for ShellChrome
impl UnsafeUnpin for ShellChrome
impl UnwindSafe for ShellChrome
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
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>
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>
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