Skip to main content

drain_encoder

Function drain_encoder 

Source
pub fn drain_encoder<E, F, E2>(
    enc: &mut E,
    pulse: Option<&dyn Pulse>,
    on_output: F,
) -> Result<(), PumpError<SessionError<E::Error>, E2>>
where E: VideoEncoder + ?Sized, F: FnMut(Packet) -> Result<(), E2>,
Expand description

The encoder twin of drain_decoder.

§Errors

The encoder’s error as Upstream, on_output’s as Downstream.