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<'impl0> Detector<'impl0> 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<'impl0> Detector<'impl0> 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<'impl0> Detector<'impl0> 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§