pub struct ResyncStats {
pub resyncs: u64,
pub bytes_discarded: u64,
pub desyncs: u64,
}Expand description
Statistics tracking resynchronisation events and discarded bytes in a TS byte stream.
Returned by SectionStream::resync_stats and
T2miEventStream::resync_stats.
Fields§
§resyncs: u64Number of times the stream re-aligned on a new sync byte.
bytes_discarded: u64Total bytes discarded due to resync alignment or mid-stream desync.
desyncs: u64Number of mid-stream alignment losses detected (a packet whose first
byte was not 0x47).
Trait Implementations§
Source§impl Clone for ResyncStats
impl Clone for ResyncStats
Source§fn clone(&self) -> ResyncStats
fn clone(&self) -> ResyncStats
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 moreimpl Copy for ResyncStats
Source§impl Debug for ResyncStats
impl Debug for ResyncStats
Source§impl Default for ResyncStats
impl Default for ResyncStats
Source§fn default() -> ResyncStats
fn default() -> ResyncStats
Returns the “default value” for a type. Read more
impl Eq for ResyncStats
Source§impl PartialEq for ResyncStats
impl PartialEq for ResyncStats
Source§fn eq(&self, other: &ResyncStats) -> bool
fn eq(&self, other: &ResyncStats) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResyncStats
Auto Trait Implementations§
impl Freeze for ResyncStats
impl RefUnwindSafe for ResyncStats
impl Send for ResyncStats
impl Sync for ResyncStats
impl Unpin for ResyncStats
impl UnsafeUnpin for ResyncStats
impl UnwindSafe for ResyncStats
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