pub enum VideoPacketModEx {
TimestampOffsetNano {
video_timestamp_nano_offset: u32,
},
Other {
video_packet_mod_ex_type: VideoPacketModExType,
mod_ex_data: Bytes,
},
}
Expand description
This is a helper enum to represent the different types of video packet modifier extensions.
Variants§
TimestampOffsetNano
Timestamp offset in nanoseconds.
Other
Any other modifier extension.
Fields
§
video_packet_mod_ex_type: VideoPacketModExType
The type of the modifier extension.
§
mod_ex_data: Bytes
The data of the modifier extension.
Implementations§
Source§impl VideoPacketModEx
impl VideoPacketModEx
Sourcepub fn demux(
reader: &mut Cursor<Bytes>,
) -> Result<(Self, VideoPacketType), FlvError>
pub fn demux( reader: &mut Cursor<Bytes>, ) -> Result<(Self, VideoPacketType), FlvError>
Demux a VideoPacketModEx
from the given reader.
Returns the demuxed VideoPacketModEx
and the next VideoPacketType
, if successful.
Trait Implementations§
Source§impl Clone for VideoPacketModEx
impl Clone for VideoPacketModEx
Source§fn clone(&self) -> VideoPacketModEx
fn clone(&self) -> VideoPacketModEx
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for VideoPacketModEx
impl Debug for VideoPacketModEx
Source§impl PartialEq for VideoPacketModEx
impl PartialEq for VideoPacketModEx
impl StructuralPartialEq for VideoPacketModEx
Auto Trait Implementations§
impl !Freeze for VideoPacketModEx
impl RefUnwindSafe for VideoPacketModEx
impl Send for VideoPacketModEx
impl Sync for VideoPacketModEx
impl Unpin for VideoPacketModEx
impl UnwindSafe for VideoPacketModEx
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