pub struct MapErr<P, F> { /* private fields */ }Expand description
Packetizer with mapped error type.
Trait Implementations§
Source§impl<P, F, E> Packetizer for MapErr<P, F>
impl<P, F, E> Packetizer for MapErr<P, F>
type Frame = <P as Packetizer>::Frame
type Error = E
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> Freeze for MapErr<P, F>
impl<P, F> RefUnwindSafe for MapErr<P, F>where
P: RefUnwindSafe,
F: RefUnwindSafe,
impl<P, F> Send for MapErr<P, F>
impl<P, F> Sync for MapErr<P, F>
impl<P, F> Unpin for MapErr<P, F>
impl<P, F> UnwindSafe for MapErr<P, F>where
P: UnwindSafe,
F: UnwindSafe,
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