pub struct BufferConsumptionRecord {
pub ts: Duration,
pub frames: usize,
}
Expand description
BufferConsumptionRecord
records the timestamp and the
accumulated number of consumed frames at every stream buffer commit.
It is used to compute the buffer consumption rate.
Fields§
§ts: Duration
§frames: usize
Implementations§
Trait Implementations§
source§impl Debug for BufferConsumptionRecord
impl Debug for BufferConsumptionRecord
source§impl Default for BufferConsumptionRecord
impl Default for BufferConsumptionRecord
source§fn default() -> BufferConsumptionRecord
fn default() -> BufferConsumptionRecord
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for BufferConsumptionRecord
impl Send for BufferConsumptionRecord
impl Sync for BufferConsumptionRecord
impl Unpin for BufferConsumptionRecord
impl UnwindSafe for BufferConsumptionRecord
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