Trait SchedulerCtx
Source pub(crate) trait SchedulerCtx: Send + Sync {
// Required methods
fn get_table_to_region_stats<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<HashMap<TableId, Vec<RegionStat>>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_table_route<'life0, 'async_trait>(
&'life0 self,
table_id: TableId,
) -> Pin<Box<dyn Future<Output = Result<(TableId, PhysicalTableRouteValue)>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_file_references<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
query_regions: &'life1 [RegionId],
related_regions: HashMap<RegionId, Vec<RegionId>>,
region_routes: &'life2 HashMap<RegionId, (Peer, Vec<Peer>)>,
timeout: Duration,
) -> Pin<Box<dyn Future<Output = Result<FileRefsManifest>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn gc_regions<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
peer: Peer,
region_ids: &'life1 [RegionId],
file_refs_manifest: &'life2 FileRefsManifest,
full_file_listing: bool,
timeout: Duration,
) -> Pin<Box<dyn Future<Output = Result<GcReport>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}