pub trait CaptureProvisioning: Send + Sync {
// Required methods
fn inspect_coverage<'life0, 'life1, 'async_trait>(
&'life0 self,
required: &'life1 BTreeSet<QualifiedTable>,
) -> Pin<Box<dyn Future<Output = Result<CoverageReport>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn ensure_coverage<'life0, 'life1, 'async_trait>(
&'life0 self,
required: &'life1 BTreeSet<QualifiedTable>,
manage: bool,
) -> Pin<Box<dyn Future<Output = Result<CoverageReport>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
A source’s ability to report and provision the prerequisites for streaming a
set of tables. Implemented per mechanism (Postgres backs it with a
publication); consumed by the CLI (check reports, run ensures) only
through this neutral surface.
Required Methods§
Sourcefn inspect_coverage<'life0, 'life1, 'async_trait>(
&'life0 self,
required: &'life1 BTreeSet<QualifiedTable>,
) -> Pin<Box<dyn Future<Output = Result<CoverageReport>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn inspect_coverage<'life0, 'life1, 'async_trait>(
&'life0 self,
required: &'life1 BTreeSet<QualifiedTable>,
) -> Pin<Box<dyn Future<Output = Result<CoverageReport>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Read-only: report coverage of required against what the source streams,
and whether the gap (if any) is manageable. Never mutates anything.
Sourcefn ensure_coverage<'life0, 'life1, 'async_trait>(
&'life0 self,
required: &'life1 BTreeSet<QualifiedTable>,
manage: bool,
) -> Pin<Box<dyn Future<Output = Result<CoverageReport>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn ensure_coverage<'life0, 'life1, 'async_trait>(
&'life0 self,
required: &'life1 BTreeSet<QualifiedTable>,
manage: bool,
) -> Pin<Box<dyn Future<Output = Result<CoverageReport>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Provision any missing tables when manage is set and the gap is
manageable; otherwise a no-op. Returns the report as observed before
acting (so a caller can log what was — or would have been — done). A
no-op for an already-satisfied set.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".