pub struct PcrBitrate { /* private fields */ }Expand description
The estimate taken from one PCR PID: the packets carried between its first and last PCR over the time those PCRs span.
Implementations§
Source§impl PcrBitrate
impl PcrBitrate
Sourcepub fn span_seconds(&self) -> f64
pub fn span_seconds(&self) -> f64
Seconds between the first and last PCR on pid.
Sourcepub fn bits_per_second(&self) -> f64
pub fn bits_per_second(&self) -> f64
Multiplex bits per second: packets · 188 · 8 · 27 MHz / Δpcr.
Sourcepub fn bits_per_second_for(&self, packets: u64) -> f64
pub fn bits_per_second_for(&self, packets: u64) -> f64
Bits per second carried by packets packets over the same span, e.g.
one PID’s packet count against the multiplex’s PCR clock.
Trait Implementations§
Source§impl Clone for PcrBitrate
impl Clone for PcrBitrate
impl Copy for PcrBitrate
Source§impl Debug for PcrBitrate
impl Debug for PcrBitrate
impl Eq for PcrBitrate
Source§impl PartialEq for PcrBitrate
impl PartialEq for PcrBitrate
impl StructuralPartialEq for PcrBitrate
Auto Trait Implementations§
impl Forget for PcrBitrate
impl Freeze for PcrBitrate
impl Move for PcrBitrate
impl RefUnwindSafe for PcrBitrate
impl Send for PcrBitrate
impl Sync for PcrBitrate
impl Unpin for PcrBitrate
impl UnsafeUnpin for PcrBitrate
impl UnwindSafe for PcrBitrate
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