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§
Sourcefn wizard_name(&self) -> &str
fn wizard_name(&self) -> &str
Get wizard name
Sourcefn 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_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
Sourcefn 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 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
Sourcefn get_progress(&self, context: &SetupContext) -> f32
fn get_progress(&self, context: &SetupContext) -> f32
Get setup progress
Sourcefn 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,
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