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§
sourcefn get_bin_path(&self) -> Result<&Path, ProtoError>
fn get_bin_path(&self) -> Result<&Path, ProtoError>
Return an absolute file path to the executable binary for the tool.
Provided Methods§
sourcefn 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,
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.