pub enum AudioPacketModEx {
TimestampOffsetNano {
audio_timestamp_nano_offset: u32,
},
Other {
audio_packet_mod_ex_type: AudioPacketModExType,
mod_ex_data: Bytes,
},
}
Expand description
This is a helper enum to represent the different types of audio packet modifier extensions.
Variants§
TimestampOffsetNano
Timestamp offset in nanoseconds.
Other
Any other modifier extension.
Fields
§
audio_packet_mod_ex_type: AudioPacketModExType
The type of the modifier extension.
§
mod_ex_data: Bytes
The data of the modifier extension.
Implementations§
Source§impl AudioPacketModEx
impl AudioPacketModEx
Sourcepub fn demux(
reader: &mut Cursor<Bytes>,
) -> Result<(Self, AudioPacketType), FlvError>
pub fn demux( reader: &mut Cursor<Bytes>, ) -> Result<(Self, AudioPacketType), FlvError>
Demux a AudioPacketModEx
from the given reader.
Returns the demuxed AudioPacketModEx
and the next AudioPacketType
, if successful.
Trait Implementations§
Source§impl Clone for AudioPacketModEx
impl Clone for AudioPacketModEx
Source§fn clone(&self) -> AudioPacketModEx
fn clone(&self) -> AudioPacketModEx
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 AudioPacketModEx
impl Debug for AudioPacketModEx
Source§impl PartialEq for AudioPacketModEx
impl PartialEq for AudioPacketModEx
impl StructuralPartialEq for AudioPacketModEx
Auto Trait Implementations§
impl !Freeze for AudioPacketModEx
impl RefUnwindSafe for AudioPacketModEx
impl Send for AudioPacketModEx
impl Sync for AudioPacketModEx
impl Unpin for AudioPacketModEx
impl UnwindSafe for AudioPacketModEx
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