Skip to main content

send_frame_until_accepted

Function send_frame_until_accepted 

Source
pub fn send_frame_until_accepted<E, F, E2>(
    enc: &mut E,
    frame: &Frame,
    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 send_packet_until_accepted.

§Errors

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