pub struct ConformanceMonitor { /* private fields */ }Expand description
ETSI TR 101 290 transport-stream conformance monitor.
Feed one TS packet at a time via feed; each call returns
the events raised by that packet. The monitor is synchronous and
single-threaded — no interior mutability, no async.
Implementations§
Source§impl ConformanceMonitor
impl ConformanceMonitor
Sourcepub fn with_config(config: Config) -> Self
pub fn with_config(config: Config) -> Self
Create a monitor with the given configuration.
Sourcepub fn feed(&mut self, ts_packet: &[u8], t: Duration) -> &[ConformanceEvent]
pub fn feed(&mut self, ts_packet: &[u8], t: Duration) -> &[ConformanceEvent]
Feed ONE TS packet (any length; 188 expected) with its caller-supplied
arrival time t.
t must be monotonic non-decreasing across calls (documented but not
enforced). Returns the events raised by this packet.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConformanceMonitor
impl RefUnwindSafe for ConformanceMonitor
impl Send for ConformanceMonitor
impl Sync for ConformanceMonitor
impl Unpin for ConformanceMonitor
impl UnsafeUnpin for ConformanceMonitor
impl UnwindSafe for ConformanceMonitor
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