Trait SetupWizard

Source
pub trait SetupWizard: Send + Sync {
    // Required methods
    fn wizard_name(&self) -> &str;
    fn get_steps(&self) -> Vec<Box<dyn SetupStep>>;
    fn run_setup<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Config>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn run_steps<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        step_ids: &'life1 [&'life2 str],
    ) -> Pin<Box<dyn Future<Output = Result<Config>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn get_progress(&self, context: &SetupContext) -> f32;
    fn handle_error<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        step: &'life1 dyn SetupStep,
        error: &'life2 ClaudeCodeError,
        context: &'life3 mut SetupContext,
    ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}
Expand description

Setup wizard orchestrator

Required Methods§

Source

fn wizard_name(&self) -> &str

Get wizard name

Source

fn get_steps(&self) -> Vec<Box<dyn SetupStep>>

Get all setup steps

Source

fn run_setup<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Config>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Run complete setup wizard

Source

fn run_steps<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, step_ids: &'life1 [&'life2 str], ) -> Pin<Box<dyn Future<Output = Result<Config>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Run specific steps

Source

fn get_progress(&self, context: &SetupContext) -> f32

Get setup progress

Source

fn handle_error<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, step: &'life1 dyn SetupStep, error: &'life2 ClaudeCodeError, context: &'life3 mut SetupContext, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Handle setup errors

Implementors§