Trait proto::Executable

source ·
pub trait Executable<'tool>: Send + Sync {
    // Required method
    fn get_bin_path(&self) -> Result<&Path, 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.

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§

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§

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§

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§

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>

Implementors§