#[non_exhaustive]pub struct EncodedPacket { /* private fields */ }Expand description
Owned copy of one delivered packet, produced by PacketSink::channel.
Implementations§
Source§impl EncodedPacket
impl EncodedPacket
Sourcepub fn stream_index(&self) -> usize
pub fn stream_index(&self) -> usize
Output stream index.
Sourcepub fn pts(&self) -> i64
pub fn pts(&self) -> i64
Presentation timestamp; see PacketView::pts.
Sourcepub fn dts(&self) -> i64
pub fn dts(&self) -> i64
Decode timestamp; see PacketView::dts.
Sourcepub fn duration(&self) -> i64
pub fn duration(&self) -> i64
Packet duration; see PacketView::duration.
Sourcepub fn time_base(&self) -> AVRational
pub fn time_base(&self) -> AVRational
Stream time base.
Sourcepub fn duration_us(&self) -> i64
pub fn duration_us(&self) -> i64
duration in microseconds.
Sourcepub fn applied_offset_us(&self) -> i64
pub fn applied_offset_us(&self) -> i64
applied_offset in microseconds.
Sourcepub fn is_key(&self) -> bool
pub fn is_key(&self) -> bool
Fresh-decoder-safe random access point; see PacketView::is_key.
Sourcepub fn applied_offset(&self) -> i64
pub fn applied_offset(&self) -> i64
Applied origin shift; see PacketView::applied_offset.
Trait Implementations§
Source§impl Clone for EncodedPacket
impl Clone for EncodedPacket
Source§fn clone(&self) -> EncodedPacket
fn clone(&self) -> EncodedPacket
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EncodedPacket
impl RefUnwindSafe for EncodedPacket
impl Send for EncodedPacket
impl Sync for EncodedPacket
impl Unpin for EncodedPacket
impl UnsafeUnpin for EncodedPacket
impl UnwindSafe for EncodedPacket
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