pub trait CommandProvider: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn commands<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 ProjectContext,
) -> Pin<Box<dyn Future<Output = RazResult<Vec<Command>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
// Provided methods
fn priority(&self) -> u8 { ... }
fn can_handle(&self, context: &ProjectContext) -> bool { ... }
}
Expand description
Trait for implementing command providers
Required Methods§
Provided Methods§
Sourcefn can_handle(&self, context: &ProjectContext) -> bool
fn can_handle(&self, context: &ProjectContext) -> bool
Whether this provider can handle the given context