pub struct MapErr<D, F> { /* private fields */ }Expand description
Depacketizer with mapped error type.
Trait Implementations§
Source§impl<D, F, E> Depacketizer for MapErr<D, F>
impl<D, F, E> Depacketizer for MapErr<D, F>
type Frame = <D as Depacketizer>::Frame
type Error = E
Source§fn push(&mut self, packet: RtpPacket) -> Result<(), Self::Error>
fn push(&mut self, packet: RtpPacket) -> Result<(), Self::Error>
Process a given RTP packet. Read more
Source§fn take(&mut self) -> Result<Option<Self::Frame>, Self::Error>
fn take(&mut self) -> Result<Option<Self::Frame>, Self::Error>
Take the next available media frame. Read more
Auto Trait Implementations§
impl<D, F> Freeze for MapErr<D, F>
impl<D, F> RefUnwindSafe for MapErr<D, F>where
D: RefUnwindSafe,
F: RefUnwindSafe,
impl<D, F> Send for MapErr<D, F>
impl<D, F> Sync for MapErr<D, F>
impl<D, F> Unpin for MapErr<D, F>
impl<D, F> UnwindSafe for MapErr<D, F>where
D: 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