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 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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RepresentationResolution
impl Debug for RepresentationResolution
impl Eq for RepresentationResolution
Source§impl PartialEq for RepresentationResolution
impl PartialEq for RepresentationResolution
Source§fn eq(&self, other: &RepresentationResolution) -> bool
fn eq(&self, other: &RepresentationResolution) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RepresentationResolution
Auto Trait Implementations§
impl Freeze for RepresentationResolution
impl RefUnwindSafe for RepresentationResolution
impl Send for RepresentationResolution
impl Sync for RepresentationResolution
impl Unpin for RepresentationResolution
impl UnsafeUnpin for RepresentationResolution
impl UnwindSafe for RepresentationResolution
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more