pub enum AacAudioData {
SequenceHeader(Bytes),
Raw(Bytes),
Unknown {
aac_packet_type: AacPacketType,
data: Bytes,
},
}
Expand description
FLV AACAUDIODATA
This is a container for AAC data. This enum contains the data for the different types of AAC packets.
Defined by:
- Legacy FLV spec, Annex E.4.2.2
Variants§
SequenceHeader(Bytes)
AAC Sequence Header
Raw(Bytes)
AAC Raw
Unknown
Data we don’t know how to parse
Implementations§
Source§impl AacAudioData
impl AacAudioData
Sourcepub fn new(aac_packet_type: AacPacketType, data: Bytes) -> Self
pub fn new(aac_packet_type: AacPacketType, data: Bytes) -> Self
Create a new AAC packet from the given data and packet type.
Trait Implementations§
Source§impl Clone for AacAudioData
impl Clone for AacAudioData
Source§fn clone(&self) -> AacAudioData
fn clone(&self) -> AacAudioData
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 AacAudioData
impl Debug for AacAudioData
Source§impl PartialEq for AacAudioData
impl PartialEq for AacAudioData
impl StructuralPartialEq for AacAudioData
Auto Trait Implementations§
impl !Freeze for AacAudioData
impl RefUnwindSafe for AacAudioData
impl Send for AacAudioData
impl Sync for AacAudioData
impl Unpin for AacAudioData
impl UnwindSafe for AacAudioData
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