pub struct Rendition(/* private fields */);Expand description
A handle to one output rendition, holding the counters a caller bills against.
Cheap to clone, and it outlives the encode: the totals stay readable while
the rendition is idle, and keep accumulating if it starts again. Obtained
from Update::rendition.
Implementations§
Source§impl Rendition
impl Rendition
Sourcepub fn frames(&self) -> u64
pub fn frames(&self) -> u64
How many frames this rendition has encoded, over every pipeline.
This is the meter to bill: monotonic, never reset, and counting what was
produced rather than how long a pipeline stayed alive, so a group fetch
and a live session are charged the same way. Subtracting two reads bills
the span between them, and frames / framerate is the media seconds that
reached consumers. Frames that failed to reach the output group are not
counted.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rendition
impl RefUnwindSafe for Rendition
impl Send for Rendition
impl Sync for Rendition
impl Unpin for Rendition
impl UnsafeUnpin for Rendition
impl UnwindSafe for Rendition
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