pub trait WizardBackend {
Show 16 methods
// Required methods
fn detect_environment(&mut self) -> EnvironmentInfo;
fn recommend_action(&self, env: &EnvironmentInfo) -> InstallAction;
fn start_install(&mut self, variant: &LibtorchVariant);
fn poll_install(&mut self) -> InstallPoll;
fn start_bootstrap(&mut self);
fn poll_bootstrap(&mut self) -> BootstrapPoll;
fn has_existing_policy(&self) -> bool;
fn apply_template(&mut self, name: &str);
fn add_user(&mut self, username: &str, role: &str);
fn add_user_custom(
&mut self,
username: &str,
resource: &str,
actions: &[String],
);
fn save_policies(&mut self);
fn generate_token(&mut self, username: &str, duration: &str) -> TokenResult;
fn start_services(&mut self);
fn poll_pending(&mut self) -> OpStatus;
fn local_username(&self) -> String;
fn templates(&self) -> Vec<TemplateInfo>;
}Expand description
Backend trait abstracting real hyprstream operations from the TUI.
MockWizardBackend provides canned responses for WASI/browser and testing.
The native BootstrapManager (in hyprstream) bridges to the real runtime.