Struct msf_rtp::packetizer::MapErr
source · [−]pub struct MapErr<P, F> { /* private fields */ }
Expand description
Packetizer with mapped error type.
Trait Implementations
sourceimpl<P, F, E> Packetizer for MapErr<P, F> where
P: Packetizer,
F: FnMut(P::Error) -> E,
impl<P, F, E> Packetizer for MapErr<P, F> where
P: Packetizer,
F: FnMut(P::Error) -> E,
type Frame = <P as Packetizer>::Frame
type Error = E
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> RefUnwindSafe for MapErr<P, F> where
F: RefUnwindSafe,
P: RefUnwindSafe,
impl<P, F> Send for MapErr<P, F> where
F: Send,
P: Send,
impl<P, F> Sync for MapErr<P, F> where
F: Sync,
P: Sync,
impl<P, F> Unpin for MapErr<P, F> where
F: Unpin,
P: Unpin,
impl<P, F> UnwindSafe for MapErr<P, F> where
F: UnwindSafe,
P: 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