Struct msf_rtp::packetizer::WithFrame
source · [−]pub struct WithFrame<P, F, T> { /* private fields */ }
Expand description
Packetizer with mapped media frame type.
Trait Implementations
sourceimpl<P, F, T> Packetizer for WithFrame<P, F, T> where
P: Packetizer,
F: FnMut(T) -> P::Frame,
impl<P, F, T> Packetizer for WithFrame<P, F, T> where
P: Packetizer,
F: FnMut(T) -> P::Frame,
type Frame = T
type Error = <P as Packetizer>::Error
sourcefn push(&mut self, frame: Self::Frame) -> Result<(), Self::Error>
fn push(&mut self, frame: Self::Frame) -> Result<(), Self::Error>
Process a given media frame. Read more
sourcefn take(&mut self) -> Result<Option<RtpPacket>, Self::Error>
fn take(&mut self) -> Result<Option<RtpPacket>, Self::Error>
Take the next available RTP packet. Read more
Auto Trait Implementations
impl<P, F, T> RefUnwindSafe for WithFrame<P, F, T> where
F: RefUnwindSafe,
P: RefUnwindSafe,
T: RefUnwindSafe,
impl<P, F, T> Send for WithFrame<P, F, T> where
F: Send,
P: Send,
T: Send,
impl<P, F, T> Sync for WithFrame<P, F, T> where
F: Sync,
P: Sync,
T: Sync,
impl<P, F, T> Unpin for WithFrame<P, F, T> where
F: Unpin,
P: Unpin,
T: Unpin,
impl<P, F, T> UnwindSafe for WithFrame<P, F, T> where
F: UnwindSafe,
P: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more