pub struct WithFrame<P, F, T> { /* private fields */ }Expand description
Packetizer with mapped media frame type.
Trait Implementations§
Source§impl<P, F, T> Packetizer for WithFrame<P, F, T>
impl<P, F, T> Packetizer for WithFrame<P, F, T>
type Frame = T
type Error = <P as Packetizer>::Error
Source§fn 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
Source§fn 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
Source§fn with_frame<F, T>(self, f: F) -> WithFrame<Self, F, T>
fn with_frame<F, T>(self, f: F) -> WithFrame<Self, F, T>
Convert this packetizer into a new one accepting media frames of a
given type.
Auto Trait Implementations§
impl<P, F, T> Freeze for WithFrame<P, F, T>
impl<P, F, T> RefUnwindSafe for WithFrame<P, F, T>
impl<P, F, T> Send for WithFrame<P, F, T>
impl<P, F, T> Sync for WithFrame<P, F, T>
impl<P, F, T> Unpin for WithFrame<P, F, T>
impl<P, F, T> UnwindSafe for WithFrame<P, F, T>
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