Trait proto::Shimable

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

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

Required Methods§

source

fn create_shims<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<(), ProtoError>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, Self: '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.

Implementations on Foreign Types§

source§

impl Shimable<'_> for BunLanguage

source§

fn create_shims<'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§

impl Shimable<'_> for DenoLanguage

source§

fn create_shims<'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§

impl Shimable<'_> for GoLanguage

source§

fn create_shims<'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§

impl Shimable<'_> for NodeDependencyManager

source§

fn create_shims<'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_shim_path(&self) -> Option<&Path>

source§

impl Shimable<'_> for NodeLanguage

source§

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

Implementors§