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