Skip to main content

Installer

Trait Installer 

Source
pub trait Installer: Send + Sync {
    // Required methods
    fn info(&self) -> &DebuggerInfo;
    fn status<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<InstallStatus>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn best_method<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<InstallMethod>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn install<'life0, 'async_trait>(
        &'life0 self,
        opts: InstallOptions,
    ) -> Pin<Box<dyn Future<Output = Result<InstallResult>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn uninstall<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn verify<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<VerifyResult>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Trait for debugger installers

Required Methods§

Source

fn info(&self) -> &DebuggerInfo

Get debugger metadata

Source

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

Check current installation status

Source

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

Find the best installation method for current platform

Source

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

Install the debugger

Source

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

Uninstall the debugger

Source

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

Verify the installation works

Implementors§