rust: Nexus Terminal app shell (title bar, sidebar, tabs, split panes, terminal view, palette, prompts, dialogs, toasts, status bar)
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
//! RAW TCP viewer: text / hex / split views of the capture and a send bar.
|
||||
//! STUB — interface fixed; implementation pending.
|
||||
|
||||
use crate::state::Shared;
|
||||
use nexus_core::models::Profile;
|
||||
|
||||
pub struct RawView {
|
||||
pub session: String,
|
||||
}
|
||||
|
||||
impl RawView {
|
||||
pub fn new(session: &str, _profile: &Profile) -> RawView {
|
||||
RawView { session: session.into() }
|
||||
}
|
||||
|
||||
/// Data from `Event::RawData` (direction "send"/"recv", unix ms timestamp).
|
||||
pub fn on_data(&mut self, _data: &[u8], _direction: &str, _timestamp: i64) {}
|
||||
|
||||
pub fn ui(&mut self, ui: &mut egui::Ui, _s: &mut Shared) {
|
||||
ui.label("RAW viewer");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user