pub(crate) struct LauncherApp {
pub(crate) status_msg: String,
pub(crate) show_kernel_console: bool,
pub(crate) show_gui_console: bool,
pub(crate) system: System,
}Expand description
Primary state structure for the Launcher GUI application.
Fields§
§status_msg: StringHuman-readable status message displayed in the UI for user feedback.
show_kernel_console: boolWhether to open a visible console window when spawning the Kernel.
show_gui_console: boolWhether to open a visible console window when spawning the GUI client.
system: SystemSystem monitor instance used for querying running processes.
Implementations§
Source§impl LauncherApp
impl LauncherApp
Sourcepub(crate) fn new(_ctx: Context) -> Self
pub(crate) fn new(_ctx: Context) -> Self
Creates a new LauncherApp instance with default state, initializes the [System] monitor,
and resolves the workspace directory.
§Arguments
_ctx- The egui context used for UI rendering and state configuration.
Sourcepub(crate) fn draw_kernel_group(&mut self, ui: &mut Ui)
pub(crate) fn draw_kernel_group(&mut self, ui: &mut Ui)
Renders the UI section for configuring and launching the REKTAL Kernel.
Includes a live status indicator (green/red dot), a checkbox for toggling the terminal console, and a button to spawn the process if not already running.
§Arguments
ui- The egui UI builder used to draw the controls.
Sourcepub(crate) fn draw_gui_group(&mut self, ui: &mut Ui)
pub(crate) fn draw_gui_group(&mut self, ui: &mut Ui)
Renders the UI section for configuring and launching the REKTAL GUI client.
Includes a live status indicator (green/red dot), a checkbox for toggling the terminal console, and a button to spawn the process.
§Arguments
ui- The egui UI builder used to draw the controls.
Sourcepub(crate) fn is_kernel_active(&self) -> bool
pub(crate) fn is_kernel_active(&self) -> bool
Checks whether a REKTAL Kernel process is currently active on the host system.
Iterates through the active system processes cached in [System] to check if any process
name begins with "kernel".
§Returns
true if a matching Kernel process is active, false otherwise.
Sourcepub(crate) fn is_gui_active(&self) -> bool
pub(crate) fn is_gui_active(&self) -> bool
Checks whether a REKTAL GUI client process is currently active on the host system.
Iterates through the active system processes cached in [System] to check if any process
name begins with "gui".
§Returns
true if a matching GUI client process is active, false otherwise.
Trait Implementations§
Source§impl App for LauncherApp
impl App for LauncherApp
Source§fn update(&mut self, ctx: &Context, _frame: &mut Frame)
fn update(&mut self, ctx: &Context, _frame: &mut Frame)
Primary update function called once per UI frame by eframe.
Renders the central panel with side-by-side controls and live status dots for Kernel and GUI, presents active status messages, refreshes the OS process list, and schedules automatic repaints every 500ms.
§fn save(&mut self, _storage: &mut dyn Storage)
fn save(&mut self, _storage: &mut dyn Storage)
§fn auto_save_interval(&self) -> Duration
fn auto_save_interval(&self) -> Duration
Self::save]§fn clear_color(&self, _visuals: &Visuals) -> [f32; 4]
fn clear_color(&self, _visuals: &Visuals) -> [f32; 4]
gl.clearColor. Read more§fn persist_egui_memory(&self) -> bool
fn persist_egui_memory(&self) -> bool
§fn raw_input_hook(&mut self, _ctx: &Context, _raw_input: &mut RawInput)
fn raw_input_hook(&mut self, _ctx: &Context, _raw_input: &mut RawInput)
Self::update]. Read moreAuto Trait Implementations§
impl Freeze for LauncherApp
impl RefUnwindSafe for LauncherApp
impl Send for LauncherApp
impl Sync for LauncherApp
impl Unpin for LauncherApp
impl UnsafeUnpin for LauncherApp
impl UnwindSafe for LauncherApp
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.