pub struct PassthroughTranscoder { /* private fields */ }Expand description
Pass-through transcoder: logs each fragment and counts calls but does NOT encode or republish. The real encoder lives in session 105 B.
Held by the crate::TranscodeRunner’s drain task. One
instance per (source_broadcast, rendition) pair the factory
opts into.
Implementations§
Source§impl PassthroughTranscoder
impl PassthroughTranscoder
Sourcepub fn new(rendition: &RenditionSpec) -> Self
pub fn new(rendition: &RenditionSpec) -> Self
Construct a fresh transcoder for rendition. The
crate::TranscodeRunner owns the call site; operators
typically use PassthroughTranscoderFactory instead of
constructing one directly.
Sourcepub fn fragments_seen(&self) -> u64
pub fn fragments_seen(&self) -> u64
How many fragments this transcoder has observed. Exposed
for test assertions; production code should consult the
crate::TranscodeRunnerHandle’s per-
(transcoder, rendition, broadcast, track) counters
instead.
Trait Implementations§
Source§impl Transcoder for PassthroughTranscoder
impl Transcoder for PassthroughTranscoder
Source§fn on_start(&mut self, ctx: &TranscoderContext)
fn on_start(&mut self, ctx: &TranscoderContext)
One-shot setup. Called exactly once before the first
Transcoder::on_fragment. Default: no-op.Source§fn on_fragment(&mut self, fragment: &Fragment)
fn on_fragment(&mut self, fragment: &Fragment)
Process one source fragment. Read more
Auto Trait Implementations§
impl Freeze for PassthroughTranscoder
impl RefUnwindSafe for PassthroughTranscoder
impl Send for PassthroughTranscoder
impl Sync for PassthroughTranscoder
impl Unpin for PassthroughTranscoder
impl UnsafeUnpin for PassthroughTranscoder
impl UnwindSafe for PassthroughTranscoder
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