Skip to main content

WizardBackend

Trait WizardBackend 

Source
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.

Required Methods§

Source

fn detect_environment(&mut self) -> EnvironmentInfo

Source

fn recommend_action(&self, env: &EnvironmentInfo) -> InstallAction

Source

fn start_install(&mut self, variant: &LibtorchVariant)

Source

fn poll_install(&mut self) -> InstallPoll

Source

fn start_bootstrap(&mut self)

Source

fn poll_bootstrap(&mut self) -> BootstrapPoll

Source

fn has_existing_policy(&self) -> bool

Source

fn apply_template(&mut self, name: &str)

Source

fn add_user(&mut self, username: &str, role: &str)

Source

fn add_user_custom( &mut self, username: &str, resource: &str, actions: &[String], )

Source

fn save_policies(&mut self)

Source

fn generate_token(&mut self, username: &str, duration: &str) -> TokenResult

Source

fn start_services(&mut self)

Source

fn poll_pending(&mut self) -> OpStatus

Source

fn local_username(&self) -> String

Source

fn templates(&self) -> Vec<TemplateInfo>

Implementors§