Rust referencel1fe-weave-cli
l1fe-weave-cli · tui::app
Source declarations, signatures and documentation for tui::app.
Source: sigil/weave/tools/weave/src/tui/app.rs. SHA-256: 3dcbcc0bd686b233f4bc9df609d6e9bf64d6d5e5267413eba1376b2868d068da.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
tui::app::Tab
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum Tab {
Dashboard,
Drives,
Peers,
Activity,
}Source line: 8.
tui::app::App
pub struct App {
pub config: WeaveConfig,
pub current_tab: Tab,
pub should_quit: bool,
// Tab-specific state
pub selected_drive: Option<String>,
pub selected_peer: Option<String>,
pub activity_filter: String,
// Dynamic peers (fed by background task or external source)
pub peers: Vec<PeerInfo>
}Source line: 15.
tui::app::App::new
pub fn new(config: WeaveConfig) -> Self;Source line: 30.
tui::app::App::next_tab
pub fn next_tab(&mut self);Source line: 42.
tui::app::App::previous_tab
pub fn previous_tab(&mut self);Source line: 51.
tui::app::App::handle_key
pub async fn handle_key(&mut self, key: KeyCode) -> Result<()>;Source line: 60.
tui::app::App::update
pub async fn update(&mut self) -> Result<()>;Source line: 122.
tui::app::PeerStatus
#[derive(Debug, Clone)]
pub enum PeerStatus {
Connected,
Disconnected,
Unknown,
}Source line: 129.
tui::app::PeerStatus::is_connected
pub fn is_connected(&self) -> bool;Source line: 136.
tui::app::PeerInfo
#[derive(Debug, Clone)]
pub struct PeerInfo {
pub status: PeerStatus,
pub peer_id: String,
pub address: Option<String>,
pub latency_ms: Option<u64>,
pub up_bps: Option<u64>,
pub down_bps: Option<u64>
}Source line: 142.