pub enum LegacyAudioTagBody {
Aac(AacAudioData),
Other {
sound_data: Bytes,
},
}
Expand description
The legacy FLV AudioTagBody
.
Defined by:
- Legacy FLV spec, Annex E.4.2.1
Variants§
Aac(AacAudioData)
AAC Audio Packet
Other
Any other audio format
Fields
§
sound_data: Bytes
The sound data
Implementations§
Source§impl LegacyAudioTagBody
impl LegacyAudioTagBody
Sourcepub fn demux(
header: &LegacyAudioTagHeader,
reader: &mut Cursor<Bytes>,
) -> Result<Self>
pub fn demux( header: &LegacyAudioTagHeader, reader: &mut Cursor<Bytes>, ) -> Result<Self>
Demux the audio tag body from the given reader.
The reader will be consumed entirely.
Trait Implementations§
Source§impl Clone for LegacyAudioTagBody
impl Clone for LegacyAudioTagBody
Source§fn clone(&self) -> LegacyAudioTagBody
fn clone(&self) -> LegacyAudioTagBody
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 LegacyAudioTagBody
impl Debug for LegacyAudioTagBody
Source§impl PartialEq for LegacyAudioTagBody
impl PartialEq for LegacyAudioTagBody
impl StructuralPartialEq for LegacyAudioTagBody
Auto Trait Implementations§
impl !Freeze for LegacyAudioTagBody
impl RefUnwindSafe for LegacyAudioTagBody
impl Send for LegacyAudioTagBody
impl Sync for LegacyAudioTagBody
impl Unpin for LegacyAudioTagBody
impl UnwindSafe for LegacyAudioTagBody
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