pub struct TranscodeRunnerHandle { /* private fields */ }Expand description
Cheaply-cloneable handle returned by
TranscodeRunner::install.
Holds the spawned per-transcoder drain tasks alive for the
server lifetime; tests and admin consumers read per-
(transcoder, rendition, broadcast, track) counters off this
handle. Dropping it aborts every spawned task; mid-stride
aborts do NOT call Transcoder::on_stop, matching the
[lvqr_agent::AgentRunnerHandle] shutdown shape.
Implementations§
Source§impl TranscodeRunnerHandle
impl TranscodeRunnerHandle
Sourcepub fn fragments_seen(
&self,
transcoder: &str,
rendition: &str,
broadcast: &str,
track: &str,
) -> u64
pub fn fragments_seen( &self, transcoder: &str, rendition: &str, broadcast: &str, track: &str, ) -> u64
Total fragments observed by transcoder producing
rendition from (broadcast, track). Returns 0 if no
transcoder under that key has fired yet.
Trait Implementations§
Source§impl Clone for TranscodeRunnerHandle
impl Clone for TranscodeRunnerHandle
Source§fn clone(&self) -> TranscodeRunnerHandle
fn clone(&self) -> TranscodeRunnerHandle
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 moreAuto Trait Implementations§
impl Freeze for TranscodeRunnerHandle
impl !RefUnwindSafe for TranscodeRunnerHandle
impl Send for TranscodeRunnerHandle
impl Sync for TranscodeRunnerHandle
impl Unpin for TranscodeRunnerHandle
impl UnsafeUnpin for TranscodeRunnerHandle
impl !UnwindSafe for TranscodeRunnerHandle
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