pub struct ResyncWalk<'a> {
pub tags: Vec<(usize, FlvTag<'a>)>,
pub damaged: Vec<usize>,
pub bad_previous_tag_sizes: Vec<usize>,
pub truncated_tail: Option<(usize, usize, usize)>,
}Expand description
An FLV stream walked tolerantly: every tag, the damaged spans skipped, and
whether the input ended on a short tail — see tags_resync.
Fields§
The complete tags, in order, with their offsets.
damaged: Vec<usize>Offsets of the spans whose tag framing was damaged and skipped.
bad_previous_tag_sizes: Vec<usize>Offsets of the tags kept although their PreviousTagSize disagreed with their size.
truncated_tail: Option<(usize, usize, usize)>Some when the input ends mid-tag: the tag it stopped at, and the
bytes that tag would need against the bytes actually present.
Implementations§
Source§impl ResyncWalk<'_>
impl ResyncWalk<'_>
Sourcepub fn damage(&self) -> Vec<Damage>
pub fn damage(&self) -> Vec<Damage>
One report per skip this walk made: a damaged span
(broadcast_core::damage::DamageKind::Resynchronised over the bytes
jumped) and a truncated tail
(broadcast_core::damage::DamageKind::InputTruncated). A caller that
publishes damage reports hands these on rather than leaving
Self::damaged and Self::truncated_tail unread.