pub trait CodeRepositoryStore: Send + Sync {
Show 39 methods
// Required methods
fn upsert_code_repository(
&self,
registration: CodeRepositoryRegistration,
) -> StorageFuture<'_, CodeRepositoryStatus>;
fn code_repository_status(
&self,
repository: String,
) -> StorageFuture<'_, Option<CodeRepositoryStatus>>;
fn code_repository_scope_status(
&self,
repository: String,
resolved_commit_sha: String,
path_filters: Vec<String>,
language_filters: Vec<String>,
) -> StorageFuture<'_, Option<CodeRepositoryStatus>>;
fn queue_code_index_task(
&self,
task: CodeIndexTaskSeed,
) -> StorageFuture<'_, CodeIndexTaskRecord>;
fn claim_code_index_task(
&self,
request: CodeIndexTaskClaimRequest,
) -> StorageFuture<'_, Option<CodeIndexTaskRecord>>;
fn complete_code_index_task(
&self,
request: CodeIndexTaskCompletion,
) -> StorageFuture<'_, CodeIndexTaskRecord>;
fn fail_code_index_task(
&self,
request: CodeIndexTaskFailure,
) -> StorageFuture<'_, CodeIndexTaskRecord>;
fn code_index_task(
&self,
task_id: String,
) -> StorageFuture<'_, Option<CodeIndexTaskRecord>>;
fn active_code_index_task(
&self,
repository_id: String,
) -> StorageFuture<'_, Option<CodeIndexTaskRecord>>;
fn code_index_checkpoint(
&self,
source_scope: String,
) -> StorageFuture<'_, Option<CodeIndexCheckpoint>>;
fn code_scope_retention(
&self,
repository_id: String,
) -> StorageFuture<'_, CodeScopeRetentionSummary>;
fn prune_code_repository_scopes(
&self,
request: CodeScopeRetentionRequest,
) -> StorageFuture<'_, CodeScopeRetentionSummary>;
fn code_file_fingerprints(
&self,
repository_id: String,
) -> StorageFuture<'_, Vec<CodeFileFingerprint>>;
fn apply_code_index_snapshot(
&self,
snapshot: CodeIndexSnapshot,
) -> StorageFuture<'_, CodeIndexSummary>;
fn search_code(
&self,
request: CodeRetrievalRequest,
) -> StorageFuture<'_, Vec<CodeRetrievalHit>>;
fn analyze_code_impact(
&self,
request: CodeImpactRequest,
changes: CodeImpactChanges,
) -> StorageFuture<'_, Vec<CodeRetrievalHit>>;
// Provided methods
fn recover_code_index_task_leases(
&self,
_now_ms: u64,
_max_attempts: u32,
) -> StorageFuture<'_, ()> { ... }
fn renew_code_index_task_lease(
&self,
_request: CodeIndexTaskLeaseRenewal,
) -> StorageFuture<'_, CodeIndexTaskRecord> { ... }
fn code_file_fingerprints_for_scope(
&self,
source_scope: String,
) -> StorageFuture<'_, Vec<CodeFileFingerprint>> { ... }
fn code_file_candidate_paths_for_scope(
&self,
source_scope: String,
_path_filters: Vec<String>,
_language_filters: Vec<String>,
_limit: usize,
) -> StorageFuture<'_, Vec<String>> { ... }
fn code_file_candidate_paths_for_query_scope(
&self,
source_scope: String,
_query: String,
path_filters: Vec<String>,
language_filters: Vec<String>,
limit: usize,
) -> StorageFuture<'_, Vec<String>> { ... }
fn begin_code_index_session(
&self,
session: CodeIndexSession,
) -> StorageFuture<'_, CodeIndexCheckpoint> { ... }
fn apply_code_index_batch(
&self,
batch: CodeIndexBatch,
) -> StorageFuture<'_, CodeIndexCheckpoint> { ... }
fn finalize_code_index_session(
&self,
session: CodeIndexSession,
) -> StorageFuture<'_, CodeIndexSummary> { ... }
fn search_code_feature_flags(
&self,
request: CodeFeatureFlagRequest,
) -> StorageFuture<'_, Vec<CodeFeatureFlagGraph>> { ... }
fn search_code_scope(
&self,
source_scope: String,
_request: CodeRetrievalRequest,
) -> StorageFuture<'_, Vec<CodeRetrievalHit>> { ... }
fn code_repository_totals(&self) -> StorageFuture<'_, CodeRepositoryTotals> { ... }
fn code_repository_report(
&self,
repository: String,
) -> StorageFuture<'_, CodeRepositoryReport> { ... }
fn create_code_repository_set(
&self,
_seed: CodeRepositorySetSeed,
) -> StorageFuture<'_, CodeRepositorySet> { ... }
fn add_code_repository_set_member(
&self,
_seed: CodeRepositorySetMemberSeed,
) -> StorageFuture<'_, CodeRepositorySetMember> { ... }
fn remove_code_repository_set_member(
&self,
_set_alias: String,
_repository_alias: String,
) -> StorageFuture<'_, CodeRepositorySetMember> { ... }
fn code_repository_set(
&self,
_set_alias: String,
) -> StorageFuture<'_, Option<CodeRepositorySet>> { ... }
fn code_repository_set_status(
&self,
_set_alias: String,
) -> StorageFuture<'_, Option<CodeRepositorySetStatus>> { ... }
fn refresh_code_repository_set_overlay(
&self,
_set_alias: String,
_now_ms: u64,
) -> StorageFuture<'_, CodeRepositorySetRefreshSummary> { ... }
fn code_repository_set_cross_edges(
&self,
_set_id: String,
) -> StorageFuture<'_, Vec<CodeRepositoryCrossEdge>> { ... }
fn queue_code_repository_set_refresh_task(
&self,
_task: CodeRepositorySetRefreshTaskSeed,
) -> StorageFuture<'_, CodeRepositorySetRefreshTaskRecord> { ... }
fn claim_code_repository_set_refresh_task(
&self,
_request: CodeRepositorySetRefreshTaskClaimRequest,
) -> StorageFuture<'_, Option<CodeRepositorySetRefreshTaskRecord>> { ... }
fn complete_code_repository_set_refresh_task(
&self,
_request: CodeRepositorySetRefreshTaskCompletion,
) -> StorageFuture<'_, CodeRepositorySetRefreshTaskRecord> { ... }
fn fail_code_repository_set_refresh_task(
&self,
_request: CodeRepositorySetRefreshTaskFailure,
) -> StorageFuture<'_, CodeRepositorySetRefreshTaskRecord> { ... }
}Expand description
Persisted code repository graph and retrieval contract.
Required Methods§
fn upsert_code_repository( &self, registration: CodeRepositoryRegistration, ) -> StorageFuture<'_, CodeRepositoryStatus>
fn code_repository_status( &self, repository: String, ) -> StorageFuture<'_, Option<CodeRepositoryStatus>>
fn code_repository_scope_status( &self, repository: String, resolved_commit_sha: String, path_filters: Vec<String>, language_filters: Vec<String>, ) -> StorageFuture<'_, Option<CodeRepositoryStatus>>
fn queue_code_index_task( &self, task: CodeIndexTaskSeed, ) -> StorageFuture<'_, CodeIndexTaskRecord>
fn claim_code_index_task( &self, request: CodeIndexTaskClaimRequest, ) -> StorageFuture<'_, Option<CodeIndexTaskRecord>>
fn complete_code_index_task( &self, request: CodeIndexTaskCompletion, ) -> StorageFuture<'_, CodeIndexTaskRecord>
fn fail_code_index_task( &self, request: CodeIndexTaskFailure, ) -> StorageFuture<'_, CodeIndexTaskRecord>
fn code_index_task( &self, task_id: String, ) -> StorageFuture<'_, Option<CodeIndexTaskRecord>>
fn active_code_index_task( &self, repository_id: String, ) -> StorageFuture<'_, Option<CodeIndexTaskRecord>>
fn code_index_checkpoint( &self, source_scope: String, ) -> StorageFuture<'_, Option<CodeIndexCheckpoint>>
fn code_scope_retention( &self, repository_id: String, ) -> StorageFuture<'_, CodeScopeRetentionSummary>
fn prune_code_repository_scopes( &self, request: CodeScopeRetentionRequest, ) -> StorageFuture<'_, CodeScopeRetentionSummary>
fn code_file_fingerprints( &self, repository_id: String, ) -> StorageFuture<'_, Vec<CodeFileFingerprint>>
fn apply_code_index_snapshot( &self, snapshot: CodeIndexSnapshot, ) -> StorageFuture<'_, CodeIndexSummary>
fn search_code( &self, request: CodeRetrievalRequest, ) -> StorageFuture<'_, Vec<CodeRetrievalHit>>
fn analyze_code_impact( &self, request: CodeImpactRequest, changes: CodeImpactChanges, ) -> StorageFuture<'_, Vec<CodeRetrievalHit>>
Provided Methods§
fn recover_code_index_task_leases( &self, _now_ms: u64, _max_attempts: u32, ) -> StorageFuture<'_, ()>
fn renew_code_index_task_lease( &self, _request: CodeIndexTaskLeaseRenewal, ) -> StorageFuture<'_, CodeIndexTaskRecord>
fn code_file_fingerprints_for_scope( &self, source_scope: String, ) -> StorageFuture<'_, Vec<CodeFileFingerprint>>
fn code_file_candidate_paths_for_scope( &self, source_scope: String, _path_filters: Vec<String>, _language_filters: Vec<String>, _limit: usize, ) -> StorageFuture<'_, Vec<String>>
fn code_file_candidate_paths_for_query_scope( &self, source_scope: String, _query: String, path_filters: Vec<String>, language_filters: Vec<String>, limit: usize, ) -> StorageFuture<'_, Vec<String>>
fn begin_code_index_session( &self, session: CodeIndexSession, ) -> StorageFuture<'_, CodeIndexCheckpoint>
fn apply_code_index_batch( &self, batch: CodeIndexBatch, ) -> StorageFuture<'_, CodeIndexCheckpoint>
fn finalize_code_index_session( &self, session: CodeIndexSession, ) -> StorageFuture<'_, CodeIndexSummary>
fn search_code_feature_flags( &self, request: CodeFeatureFlagRequest, ) -> StorageFuture<'_, Vec<CodeFeatureFlagGraph>>
fn search_code_scope( &self, source_scope: String, _request: CodeRetrievalRequest, ) -> StorageFuture<'_, Vec<CodeRetrievalHit>>
fn code_repository_totals(&self) -> StorageFuture<'_, CodeRepositoryTotals>
fn code_repository_report( &self, repository: String, ) -> StorageFuture<'_, CodeRepositoryReport>
fn create_code_repository_set( &self, _seed: CodeRepositorySetSeed, ) -> StorageFuture<'_, CodeRepositorySet>
fn add_code_repository_set_member( &self, _seed: CodeRepositorySetMemberSeed, ) -> StorageFuture<'_, CodeRepositorySetMember>
fn remove_code_repository_set_member( &self, _set_alias: String, _repository_alias: String, ) -> StorageFuture<'_, CodeRepositorySetMember>
fn code_repository_set( &self, _set_alias: String, ) -> StorageFuture<'_, Option<CodeRepositorySet>>
fn code_repository_set_status( &self, _set_alias: String, ) -> StorageFuture<'_, Option<CodeRepositorySetStatus>>
fn refresh_code_repository_set_overlay( &self, _set_alias: String, _now_ms: u64, ) -> StorageFuture<'_, CodeRepositorySetRefreshSummary>
fn code_repository_set_cross_edges( &self, _set_id: String, ) -> StorageFuture<'_, Vec<CodeRepositoryCrossEdge>>
fn queue_code_repository_set_refresh_task( &self, _task: CodeRepositorySetRefreshTaskSeed, ) -> StorageFuture<'_, CodeRepositorySetRefreshTaskRecord>
fn claim_code_repository_set_refresh_task( &self, _request: CodeRepositorySetRefreshTaskClaimRequest, ) -> StorageFuture<'_, Option<CodeRepositorySetRefreshTaskRecord>>
fn complete_code_repository_set_refresh_task( &self, _request: CodeRepositorySetRefreshTaskCompletion, ) -> StorageFuture<'_, CodeRepositorySetRefreshTaskRecord>
fn fail_code_repository_set_refresh_task( &self, _request: CodeRepositorySetRefreshTaskFailure, ) -> StorageFuture<'_, CodeRepositorySetRefreshTaskRecord>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".