#[repr(transparent)]pub struct AudioPacketType(pub u8);
Expand description
Different types of audio packets.
Defined by:
- Enhanced RTMP spec, page 20-21, Enhanced Audio
Tuple Fields§
§0: u8
Implementations§
Source§impl AudioPacketType
impl AudioPacketType
Sourcepub const SequenceStart: Self
pub const SequenceStart: Self
Sequence start.
Sourcepub const CodedFrames: Self
pub const CodedFrames: Self
Coded frames.
Sourcepub const SequenceEnd: Self
pub const SequenceEnd: Self
Sequence end.
Sourcepub const MultichannelConfig: Self
pub const MultichannelConfig: Self
Multichannel configuration.
Sourcepub const Multitrack: Self
pub const Multitrack: Self
Turns on audio multitrack mode.
Trait Implementations§
Source§impl Clone for AudioPacketType
impl Clone for AudioPacketType
Source§fn clone(&self) -> AudioPacketType
fn clone(&self) -> AudioPacketType
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 AudioPacketType
impl Debug for AudioPacketType
Source§impl From<AudioPacketType> for u8
impl From<AudioPacketType> for u8
Source§fn from(value: AudioPacketType) -> Self
fn from(value: AudioPacketType) -> Self
Converts to this type from the input type.
Source§impl From<u8> for AudioPacketType
impl From<u8> for AudioPacketType
Source§impl Hash for AudioPacketType
impl Hash for AudioPacketType
Source§impl Ord for AudioPacketType
impl Ord for AudioPacketType
Source§fn cmp(&self, other: &AudioPacketType) -> Ordering
fn cmp(&self, other: &AudioPacketType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AudioPacketType
impl PartialEq for AudioPacketType
Source§impl PartialOrd for AudioPacketType
impl PartialOrd for AudioPacketType
impl Copy for AudioPacketType
impl Eq for AudioPacketType
impl StructuralPartialEq for AudioPacketType
Auto Trait Implementations§
impl Freeze for AudioPacketType
impl RefUnwindSafe for AudioPacketType
impl Send for AudioPacketType
impl Sync for AudioPacketType
impl Unpin for AudioPacketType
impl UnwindSafe for AudioPacketType
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