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