pub enum ExAudioTagBody {
NoMultitrack {
audio_four_cc: AudioFourCc,
packet: AudioPacket,
},
ManyTracks(Vec<AudioTrack>),
}
Expand description
ExAudioTagBody
Defined by:
- Enhanced RTMP spec, page 22-25, ExAudioTagBody
Variants§
NoMultitrack
The body is not a multitrack body.
Fields
§
audio_four_cc: AudioFourCc
The audio FOURCC of this body.
§
packet: AudioPacket
The audio packet contained in this body.
ManyTracks(Vec<AudioTrack>)
The body is a multitrack body.
This variant contains multiple audio tracks.
See AudioTrack
for more information.
Implementations§
Source§impl ExAudioTagBody
impl ExAudioTagBody
Sourcepub fn demux(
header: &ExAudioTagHeader,
reader: &mut Cursor<Bytes>,
) -> Result<Self>
pub fn demux( header: &ExAudioTagHeader, reader: &mut Cursor<Bytes>, ) -> Result<Self>
Demux an ExAudioTagBody
from the given reader.
This is implemented as per Enhanced RTMP spec, page 22-25, ExAudioTagBody.
Trait Implementations§
Source§impl Clone for ExAudioTagBody
impl Clone for ExAudioTagBody
Source§fn clone(&self) -> ExAudioTagBody
fn clone(&self) -> ExAudioTagBody
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 ExAudioTagBody
impl Debug for ExAudioTagBody
Source§impl PartialEq for ExAudioTagBody
impl PartialEq for ExAudioTagBody
impl StructuralPartialEq for ExAudioTagBody
Auto Trait Implementations§
impl !Freeze for ExAudioTagBody
impl RefUnwindSafe for ExAudioTagBody
impl Send for ExAudioTagBody
impl Sync for ExAudioTagBody
impl Unpin for ExAudioTagBody
impl UnwindSafe for ExAudioTagBody
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