pub enum BridgeEligibility {
CatalogAuthenticated,
Unrecognized,
}Expand description
Whether the explicit offline pre-0.8.10 bridge can authenticate an unledgered on-disk catalog.
This exists so a refusal can say what is actually true about the file in
front of it. Naming the bridge as a remedy for a catalog it cannot
authenticate sends the operator into a dead end.
SCOPE. Both variants are decided from the file’s catalog shape alone.
No durable record is read, decoded, or admitted to reach this answer, so
CatalogAuthenticated must never be rendered as a promise that every
record survives the bridge. What it does justify is running the bridge:
preparation callbacks refuse per record, naming what stayed behind, rather
than aborting the domain.
Variants§
CatalogAuthenticated
Some frozen released catalog registered by this binary authenticates the on-disk shape exactly, so the explicit bridge will run on this domain instead of refusing it outright. Individual records may still be left behind; the bridge names each one it could not carry.
Unrecognized
No frozen released catalog authenticates the on-disk shape. The file predates, or diverges from, everything this binary can prove.
Implementations§
Source§impl BridgeEligibility
impl BridgeEligibility
Sourcepub fn catalog_authenticates(self) -> bool
pub fn catalog_authenticates(self) -> bool
True when the explicit bridge can authenticate the catalog and will therefore run. Says nothing about individual records; see the type docs.
Sourcepub fn remedy_sentence(self) -> &'static str
pub fn remedy_sentence(self) -> &'static str
The operator-facing remedy sentence for an unledgered domain with this eligibility, ready to append to a refusal.
It lives here, beside the answer it is derived from, because the same refusal reaches operators through more than one error type. A remedy carried by only one of them is how a caller ends up staring at a bare “refusing to infer or stamp an unversioned schema” with no next step, and two hand-copied remedies are how one of them ends up stale.
Trait Implementations§
Source§impl Clone for BridgeEligibility
impl Clone for BridgeEligibility
Source§fn clone(&self) -> BridgeEligibility
fn clone(&self) -> BridgeEligibility
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more