Skip to main content

PartitionResolver

Trait PartitionResolver 

Source
pub trait PartitionResolver<H>
where H: HostTypes,
{ // Required method fn resolve(&self, fp: ContentFingerprint) -> Option<PartitionRecord<H>>; }
Expand description

Resolver mapping content fingerprints to PartitionRecords. Provided by the host application — typically a persistent store, an in-memory registry populated from witness mint-time data, or a chain-of-witnesses trail that can reconstruct properties.

Required Methods§

Source

fn resolve(&self, fp: ContentFingerprint) -> Option<PartitionRecord<H>>

Look up partition data by fingerprint. Returns None if the resolver has no record for the handle. Handles remain valid as identity tokens regardless of resolver presence.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§