pub enum AudioTagBody {
Legacy(LegacyAudioTagBody),
Enhanced(ExAudioTagBody),
}
Expand description
FLV AudioTagBody
This only describes the audio tag body, see AudioData
for the full audio data container.
Defined by:
- Legacy FLV spec, Annex E.4.2.1
- Enhanced RTMP spec, page 19, Enhanced Audio
Variants§
Implementations§
Source§impl AudioTagBody
impl AudioTagBody
Sourcepub fn demux(
header: &AudioTagHeader,
reader: &mut Cursor<Bytes>,
) -> Result<Self>
pub fn demux( header: &AudioTagHeader, reader: &mut Cursor<Bytes>, ) -> Result<Self>
Demux the audio tag body from the given reader.
If you want to demux the full audio data tag, use AudioData::demux
instead.
This function will automatically determine whether the given data represents a legacy or an enhanced audio tag body
and demux it accordingly.
The reader will be entirely consumed.
Trait Implementations§
Source§impl Clone for AudioTagBody
impl Clone for AudioTagBody
Source§fn clone(&self) -> AudioTagBody
fn clone(&self) -> AudioTagBody
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 AudioTagBody
impl Debug for AudioTagBody
Source§impl PartialEq for AudioTagBody
impl PartialEq for AudioTagBody
impl StructuralPartialEq for AudioTagBody
Auto Trait Implementations§
impl !Freeze for AudioTagBody
impl RefUnwindSafe for AudioTagBody
impl Send for AudioTagBody
impl Sync for AudioTagBody
impl Unpin for AudioTagBody
impl UnwindSafe for AudioTagBody
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