pub struct Repacketizer { /* private fields */ }Expand description
Repackages Opus frames into packets.
Implementations§
Source§impl Repacketizer
impl Repacketizer
Sourcepub fn push(&mut self, packet: &[u8]) -> Result<()>
pub fn push(&mut self, packet: &[u8]) -> Result<()>
Add a packet to the current state.
§Errors
Returns an error if the packet is invalid for the current state.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Repacketizer
impl RefUnwindSafe for Repacketizer
impl Unpin for Repacketizer
impl UnwindSafe for Repacketizer
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