pub trait CodeIndexStore:
Send
+ Sync
+ 'static {
// Required methods
fn id(&self) -> CodeIndexStoreId;
fn status<'life0, 'async_trait>(
&'life0 self,
workspace_root: PathBuf,
) -> Pin<Box<dyn Future<Output = Result<IndexGeneration>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn search<'life0, 'async_trait>(
&'life0 self,
request: CodeIndexSearchRequest,
) -> Pin<Box<dyn Future<Output = Result<CodeIndexSearchResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn read_chunk<'life0, 'async_trait>(
&'life0 self,
proof: ContentProof,
byte_range: Option<CodeByteRange>,
) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn list_proofs<'life0, 'async_trait>(
&'life0 self,
workspace_root: PathBuf,
) -> Pin<Box<dyn Future<Output = Result<Vec<ContentProof>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Required Methods§
fn id(&self) -> CodeIndexStoreId
fn status<'life0, 'async_trait>(
&'life0 self,
workspace_root: PathBuf,
) -> Pin<Box<dyn Future<Output = Result<IndexGeneration>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn search<'life0, 'async_trait>(
&'life0 self,
request: CodeIndexSearchRequest,
) -> Pin<Box<dyn Future<Output = Result<CodeIndexSearchResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn read_chunk<'life0, 'async_trait>(
&'life0 self,
proof: ContentProof,
byte_range: Option<CodeByteRange>,
) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_proofs<'life0, 'async_trait>(
&'life0 self,
workspace_root: PathBuf,
) -> Pin<Box<dyn Future<Output = Result<Vec<ContentProof>>> + 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".