#[non_exhaustive]pub struct ResyncLoss {
pub offset: u64,
pub dropped_bytes: u64,
pub packet_index: u64,
pub truncated_tail: bool,
}Expand description
One span of bytes the resynchroniser discarded: either the bytes before the first lock (a capture that starts mid-packet or on garbage), a mid-stream sync loss, or a truncated trailing packet.
Drained with TsResync::take_losses; one entry per discarded span, so a
caller can report each skipped unit exactly once, and the spans account for
every byte in ResyncStats::dropped_bytes.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.offset: u64Byte offset, from the first byte ever fed, where the discarded span starts.
dropped_bytes: u64Length of the discarded span in bytes.
packet_index: u64Number of whole packets emitted before this loss, i.e. the index the next intact packet will carry.
truncated_tail: booltrue when the span is a truncated trailing packet found by
TsResync::finish rather than a sync loss in mid-stream.
Trait Implementations§
Source§impl Clone for ResyncLoss
impl Clone for ResyncLoss
impl Copy for ResyncLoss
Source§impl Debug for ResyncLoss
impl Debug for ResyncLoss
impl Eq for ResyncLoss
Source§impl PartialEq for ResyncLoss
impl PartialEq for ResyncLoss
Source§impl Serialize for ResyncLoss
Available on crate feature serde only.
impl Serialize for ResyncLoss
Available on crate feature
serde only.impl StructuralPartialEq for ResyncLoss
Auto Trait Implementations§
impl Forget for ResyncLoss
impl Freeze for ResyncLoss
impl Move for ResyncLoss
impl RefUnwindSafe for ResyncLoss
impl Send for ResyncLoss
impl Sync for ResyncLoss
impl Unpin for ResyncLoss
impl UnsafeUnpin for ResyncLoss
impl UnwindSafe for ResyncLoss
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