Trait proto::Detector

source ·
pub trait Detector<'tool>: Send + Sync {
    // Provided method
    fn detect_version_from<'life0, 'life1, 'async_trait>(
        &'life0 self,
        _working_dir: &'life1 Path
    ) -> Pin<Box<dyn Future<Output = Result<Option<String>, ProtoError>> + Send + 'async_trait, Global>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self: 'async_trait { ... }
}

Provided Methods§

source

fn detect_version_from<'life0, 'life1, 'async_trait>( &'life0 self, _working_dir: &'life1 Path ) -> Pin<Box<dyn Future<Output = Result<Option<String>, ProtoError>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Attempt to detect an applicable version from the provided working directory.

Implementations on Foreign Types§

source§

impl Detector<'_> for BunLanguage

source§

fn detect_version_from<'life0, 'life1, 'async_trait>( &'life0 self, _working_dir: &'life1 Path ) -> Pin<Box<dyn Future<Output = Result<Option<String>, ProtoError>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, BunLanguage: 'async_trait,

source§

impl Detector<'_> for DenoLanguage

source§

fn detect_version_from<'life0, 'life1, 'async_trait>( &'life0 self, working_dir: &'life1 Path ) -> Pin<Box<dyn Future<Output = Result<Option<String>, ProtoError>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, DenoLanguage: 'async_trait,

source§

impl Detector<'_> for GoLanguage

source§

fn detect_version_from<'life0, 'life1, 'async_trait>( &'life0 self, working_dir: &'life1 Path ) -> Pin<Box<dyn Future<Output = Result<Option<String>, ProtoError>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, GoLanguage: 'async_trait,

source§

impl Detector<'_> for NodeDependencyManager

source§

fn detect_version_from<'life0, 'life1, 'async_trait>( &'life0 self, working_dir: &'life1 Path ) -> Pin<Box<dyn Future<Output = Result<Option<String>, ProtoError>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, NodeDependencyManager: 'async_trait,

source§

impl Detector<'_> for NodeLanguage

source§

fn detect_version_from<'life0, 'life1, 'async_trait>( &'life0 self, working_dir: &'life1 Path ) -> Pin<Box<dyn Future<Output = Result<Option<String>, ProtoError>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, NodeLanguage: 'async_trait,

Implementors§