pub trait ToolResolver: Send + Sync {
// Required methods
fn resolve<'life0, 'life1, 'async_trait>(
&'life0 self,
tool: &'life1 str,
) -> Pin<Box<dyn Future<Output = VxResult<ToolSpec>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_install_config<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
tool: &'life1 str,
version: &'life2 str,
) -> Pin<Box<dyn Future<Output = VxResult<InstallConfig>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}
Expand description
Core trait for tool resolution
Required Methods§
Sourcefn resolve<'life0, 'life1, 'async_trait>(
&'life0 self,
tool: &'life1 str,
) -> Pin<Box<dyn Future<Output = VxResult<ToolSpec>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn resolve<'life0, 'life1, 'async_trait>(
&'life0 self,
tool: &'life1 str,
) -> Pin<Box<dyn Future<Output = VxResult<ToolSpec>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Resolve tool specification
Sourcefn get_install_config<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
tool: &'life1 str,
version: &'life2 str,
) -> Pin<Box<dyn Future<Output = VxResult<InstallConfig>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_install_config<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
tool: &'life1 str,
version: &'life2 str,
) -> Pin<Box<dyn Future<Output = VxResult<InstallConfig>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Get installation configuration