pub trait WorkspaceSearch: Send + Sync {
// Required methods
fn glob<'life0, 'async_trait>(
&'life0 self,
request: WorkspaceGlobRequest,
) -> Pin<Box<dyn Future<Output = Result<WorkspaceGlobResult>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn grep<'life0, 'async_trait>(
&'life0 self,
request: WorkspaceGrepRequest,
) -> Pin<Box<dyn Future<Output = Result<WorkspaceGrepResult>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Search operations available to glob and grep.
Required Methods§
fn glob<'life0, 'async_trait>(
&'life0 self,
request: WorkspaceGlobRequest,
) -> Pin<Box<dyn Future<Output = Result<WorkspaceGlobResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn grep<'life0, 'async_trait>(
&'life0 self,
request: WorkspaceGrepRequest,
) -> Pin<Box<dyn Future<Output = Result<WorkspaceGrepResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".