Trait proto_core::Shimable

source ·
pub trait Shimable<'tool>: Send + Sync {
    // Required method
    fn create_shims<'life0, 'async_trait>(
        &'life0 mut self,
        find_only: bool
    ) -> Pin<Box<dyn Future<Output = Result<(), ProtoError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided method
    fn get_shim_path(&self) -> Option<&Path> { ... }
}

Required Methods§

source

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

Create one or many shims in the root of the tool’s install directory.

Provided Methods§

source

fn get_shim_path(&self) -> Option<&Path>

Return an absolute path to the shim file if utilizing shims.

Implementors§