pub trait StoreSource: Source {
// Required method
fn record_names(&self) -> Vec<String>;
}Expand description
A source that owns a fixed, enumerable set of record names.
The distinction matters because the two tiers have different rules:
stores must be disjoint — two stores claiming the same name is a
configuration error caught at build() — while sources may shadow,
which is a legitimate way to override a PV and only warrants a warning.
record_names is synchronous because the disjointness check runs inside
PvaServerBuilder::build, which is not async.
The returned list must be deterministic (sorted) so overlap diagnostics are stable between runs.
Required Methods§
fn record_names(&self) -> Vec<String>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".