pub struct fec_decoder_stream_t { /* private fields */ }Implementations§
Source§impl fec_decoder_stream_t
impl fec_decoder_stream_t
pub fn new(start_seq: u64, ratio: u8) -> fec_decoder_stream_t
pub fn start(&mut self, start_seq: u64, ratio: u8)
pub fn cleanup(&mut self)
pub fn add_fec_packet( &mut self, seq: u64, pkt: &[u8], ) -> Result<(&[u8], u64), RESULT>
Sourcepub fn add_raw_packet(
&mut self,
seq: u64,
pkt: &[u8],
) -> Result<(&[u8], u64), RESULT>
pub fn add_raw_packet( &mut self, seq: u64, pkt: &[u8], ) -> Result<(&[u8], u64), RESULT>
add_raw_packet,加入一个RawPacket,判断是否已经解码成功
pub fn get_start_seq(&self) -> u64
pub fn get_start_idx(&self) -> usize
pub fn print_stats(&self)
Auto Trait Implementations§
impl Freeze for fec_decoder_stream_t
impl RefUnwindSafe for fec_decoder_stream_t
impl Send for fec_decoder_stream_t
impl Sync for fec_decoder_stream_t
impl Unpin for fec_decoder_stream_t
impl UnwindSafe for fec_decoder_stream_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