Trait proto::Executable

source ·
pub trait Executable<'tool>: Send + Sync {
    // Required methods
    fn get_bin_path(&self) -> Result<&Path, ProtoError>;
    fn get_globals_bin_dir(&self) -> Result<PathBuf, ProtoError>;

    // Provided method
    fn find_bin_path<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<(), ProtoError>> + Send + 'async_trait, Global>>
       where 'life0: 'async_trait,
             Self: 'async_trait { ... }
}

Required Methods§

source

fn get_bin_path(&self) -> Result<&Path, ProtoError>

Return an absolute file path to the executable binary for the tool.

source

fn get_globals_bin_dir(&self) -> Result<PathBuf, ProtoError>

Return an absolute file path to the directory containing all globally installed packages.

Provided Methods§

source

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

Find the absolute file path to the tool’s binary that will be executed. This happens after a tool has been downloaded and installed.

Implementations on Foreign Types§

source§

impl Executable<'_> for BunLanguage

source§

fn find_bin_path<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<(), ProtoError>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, BunLanguage: 'async_trait,

source§

fn get_bin_path(&self) -> Result<&Path, ProtoError>

source§

fn get_globals_bin_dir(&self) -> Result<PathBuf, ProtoError>

source§

impl Executable<'_> for DenoLanguage

source§

fn find_bin_path<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<(), ProtoError>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, DenoLanguage: 'async_trait,

source§

fn get_bin_path(&self) -> Result<&Path, ProtoError>

source§

fn get_globals_bin_dir(&self) -> Result<PathBuf, ProtoError>

source§

impl Executable<'_> for GoLanguage

source§

fn find_bin_path<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<(), ProtoError>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, GoLanguage: 'async_trait,

source§

fn get_bin_path(&self) -> Result<&Path, ProtoError>

source§

fn get_globals_bin_dir(&self) -> Result<PathBuf, ProtoError>

source§

impl Executable<'_> for NodeLanguage

source§

fn find_bin_path<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<(), ProtoError>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, NodeLanguage: 'async_trait,

source§

fn get_bin_path(&self) -> Result<&Path, ProtoError>

source§

fn get_globals_bin_dir(&self) -> Result<PathBuf, ProtoError>

source§

impl Executable<'_> for NodeDependencyManager

source§

fn find_bin_path<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<(), ProtoError>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, NodeDependencyManager: 'async_trait,

source§

fn get_bin_path(&self) -> Result<&Path, ProtoError>

source§

fn get_globals_bin_dir(&self) -> Result<PathBuf, ProtoError>

source§

impl Executable<'_> for RustLanguage

source§

fn find_bin_path<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<(), ProtoError>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, RustLanguage: 'async_trait,

source§

fn get_bin_path(&self) -> Result<&Path, ProtoError>

source§

fn get_globals_bin_dir(&self) -> Result<PathBuf, ProtoError>

source§

impl Executable<'_> for SchemaPlugin

source§

fn find_bin_path<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<(), ProtoError>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, SchemaPlugin: 'async_trait,

source§

fn get_bin_path(&self) -> Result<&Path, ProtoError>

source§

fn get_globals_bin_dir(&self) -> Result<PathBuf, ProtoError>

Implementors§