pub struct TsPacketDecoder {
pub stream_position: u64,
}Expand description
Decoder that reads 188-byte MPEG-TS packets from a byte stream.
Fields§
§stream_position: u64Implementations§
Trait Implementations§
Source§impl Decoder for TsPacketDecoder
impl Decoder for TsPacketDecoder
Source§type Error = TsPacketError
type Error = TsPacketError
The type of unrecoverable frame decoding errors. Read more
Source§fn decode(&mut self, src: &mut BytesMut) -> Result<Option<Self::Item>>
fn decode(&mut self, src: &mut BytesMut) -> Result<Option<Self::Item>>
Attempts to decode a frame from the provided buffer of bytes. Read more
Auto Trait Implementations§
impl Freeze for TsPacketDecoder
impl RefUnwindSafe for TsPacketDecoder
impl Send for TsPacketDecoder
impl Sync for TsPacketDecoder
impl Unpin for TsPacketDecoder
impl UnsafeUnpin for TsPacketDecoder
impl UnwindSafe for TsPacketDecoder
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