pub struct AudioTrackPacket<E: DemuxAdapter, D> { /* private fields */ }Expand description
Payload for DemuxedPacket::Audio.
Implementations§
Source§impl<E: DemuxAdapter, D> AudioTrackPacket<E, D>
impl<E: DemuxAdapter, D> AudioTrackPacket<E, D>
Sourcepub const fn new(track: TrackIndex, packet: DemuxAudioPacket<E, D>) -> Self
pub const fn new(track: TrackIndex, packet: DemuxAudioPacket<E, D>) -> Self
Constructs an AudioTrackPacket.
Sourcepub const fn track(&self) -> TrackIndex
pub const fn track(&self) -> TrackIndex
Returns the track this packet belongs to.
Sourcepub const fn packet(&self) -> &DemuxAudioPacket<E, D>
pub const fn packet(&self) -> &DemuxAudioPacket<E, D>
Returns the packet.
Sourcepub fn into_packet(self) -> DemuxAudioPacket<E, D>
pub fn into_packet(self) -> DemuxAudioPacket<E, D>
Consumes the envelope and returns the packet.
Sourcepub fn into_parts(self) -> (TrackIndex, DemuxAudioPacket<E, D>)
pub fn into_parts(self) -> (TrackIndex, DemuxAudioPacket<E, D>)
Consumes the envelope and returns (track, packet).
Trait Implementations§
Source§impl<E, D> Clone for AudioTrackPacket<E, D>
impl<E, D> Clone for AudioTrackPacket<E, D>
Source§impl<E, D> Debug for AudioTrackPacket<E, D>
impl<E, D> Debug for AudioTrackPacket<E, D>
Auto Trait Implementations§
impl<E, D> Freeze for AudioTrackPacket<E, D>
impl<E, D> RefUnwindSafe for AudioTrackPacket<E, D>
impl<E, D> Send for AudioTrackPacket<E, D>
impl<E, D> Sync for AudioTrackPacket<E, D>
impl<E, D> Unpin for AudioTrackPacket<E, D>
impl<E, D> UnsafeUnpin for AudioTrackPacket<E, D>
impl<E, D> UnwindSafe for AudioTrackPacket<E, D>
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