pub enum MalformedTrackCondition {
MixedForwardingPreference,
ObjectPastFinalObject,
}Expand description
Which condition of the list made a track malformed.
One variant per condition this crate can actually detect, which is fewer than the drafts list. A condition nothing observes would be a name with no call site, and the list is explicitly not exhaustive in either direction.
Variants§
MixedForwardingPreference
“An Object is received with a different Forwarding Preference than previously observed from the same Track.”
Detected by crate::forwarding_preference, which holds the framing
each track’s first object settled on.
ObjectPastFinalObject
“An Object is received on a Track whose Group and Object ID are larger than the final Object in the Track.”
Detected by crate::track_locations, which writes down where an
end-of-track object said the track stopped and measures what arrives
afterwards against it.
It reaches drafts the condition beside it does not. Draft-16 made the Forwarding Preference a property of an Object rather than of a Track, so there is nothing on that draft for a mixed-framing record to contradict; this condition is stated unchanged from draft-12 through draft-20 and depends on nothing that moved.
Trait Implementations§
Source§impl Clone for MalformedTrackCondition
impl Clone for MalformedTrackCondition
Source§fn clone(&self) -> MalformedTrackCondition
fn clone(&self) -> MalformedTrackCondition
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more