pub struct RepresentationResolution { /* private fields */ }Expand description
Representation-level availability with ordered per-resource detail.
Implementations§
Source§impl RepresentationResolution
impl RepresentationResolution
Sourcepub fn aggregate(
representation_id: RepresentationId,
structure: &ContentStructure,
resources: Vec<ResourceResolution>,
) -> Result<Self>
pub fn aggregate( representation_id: RepresentationId, structure: &ContentStructure, resources: Vec<ResourceResolution>, ) -> Result<Self>
Aggregates resource results according to content-structure requiredness.
Optional package members produce diagnostics but do not reduce aggregate availability. Known missing sequence frames make an otherwise online sequence partial.
§Errors
Returns ErrorKind::InvalidArgument unless the resource results match
the structure’s resources exactly and without duplicates.
Sourcepub fn select_verified(&self, base: DecisionBase) -> Result<RelinkSelection>
pub fn select_verified(&self, base: DecisionBase) -> Result<RelinkSelection>
Selects complete, uniquely verified content without additional media I/O.
The caller supplies the base from the same coherent read that supplied this resolution’s storage inputs. Copied locations outlive that view. Optional unverified members are omitted; their diagnostics remain here.
§Errors
Rejects unavailable required content, ambiguity, partial/unverified fingerprints and incomplete or failed search. Confidence alone is not proof of complete content verification.
Sourcepub const fn representation_id(&self) -> RepresentationId
pub const fn representation_id(&self) -> RepresentationId
Returns the representation whose availability was aggregated.
Sourcepub const fn availability(&self) -> RepresentationAvailability
pub const fn availability(&self) -> RepresentationAvailability
Returns aggregate representation availability.
Sourcepub fn resources(&self) -> &[ResourceResolution]
pub fn resources(&self) -> &[ResourceResolution]
Returns results in content-structure resource order.
Sourcepub fn issues(&self) -> &[AvailabilityIssue]
pub fn issues(&self) -> &[AvailabilityIssue]
Returns resource- and frame-specific diagnostics.
Trait Implementations§
Source§impl Clone for RepresentationResolution
impl Clone for RepresentationResolution
Source§fn clone(&self) -> RepresentationResolution
fn clone(&self) -> RepresentationResolution
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more