Trait cnf_lib::provider::IsProvider
source · pub trait IsProvider: Debug + Display {
// Required method
fn search_internal<'life0, 'life1, 'async_trait>(
&'life0 self,
command: &'life1 str,
target_env: Arc<Environment>
) -> Pin<Box<dyn Future<Output = Result<Vec<Candidate>, ProviderError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
A command provider.
Required Methods§
sourcefn search_internal<'life0, 'life1, 'async_trait>(
&'life0 self,
command: &'life1 str,
target_env: Arc<Environment>
) -> Pin<Box<dyn Future<Output = Result<Vec<Candidate>, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn search_internal<'life0, 'life1, 'async_trait>( &'life0 self, command: &'life1 str, target_env: Arc<Environment> ) -> Pin<Box<dyn Future<Output = Result<Vec<Candidate>, ProviderError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Search for a command with this provider in env.