pub struct Packet<'i>(/* private fields */);Implementations§
Source§impl<'i> Packet<'i>
impl<'i> Packet<'i>
pub fn is_key(&self) -> bool
pub fn pts(&self) -> Option<i64>
pub fn set_pts(&mut self, pts: Option<i64>)
pub fn dts(&self) -> i64
pub fn set_dts(&mut self, dts: i64)
pub fn duration(&self) -> i32
pub fn set_duration(&mut self, dur: i32)
pub fn stream_index(&self) -> usize
pub fn data(&self) -> Option<&[u8]>
Trait Implementations§
Auto Trait Implementations§
impl<'i> Freeze for Packet<'i>
impl<'i> !RefUnwindSafe for Packet<'i>
impl<'i> !Send for Packet<'i>
impl<'i> !Sync for Packet<'i>
impl<'i> Unpin for Packet<'i>
impl<'i> !UnwindSafe for Packet<'i>
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