pub struct Packet(_);
Implementations
sourceimpl Packet
impl Packet
pub fn empty() -> Self
pub fn new(size: usize) -> Self
pub fn copy(data: &[u8]) -> Self
pub fn borrow(data: &[u8]) -> Borrow<'_>
pub fn shrink(&mut self, size: usize)
pub fn grow(&mut self, size: usize)
pub fn rescale_ts<S, D>(&mut self, source: S, destination: D) where
S: Into<Rational>,
D: Into<Rational>,
pub fn flags(&self) -> Flags
pub fn set_flags(&mut self, value: Flags)
pub fn is_key(&self) -> bool
pub fn is_corrupt(&self) -> bool
pub fn stream(&self) -> usize
pub fn set_stream(&mut self, index: usize)
pub fn pts(&self) -> Option<i64>
pub fn set_pts(&mut self, value: Option<i64>)
pub fn dts(&self) -> Option<i64>
pub fn set_dts(&mut self, value: Option<i64>)
pub fn size(&self) -> usize
pub fn duration(&self) -> i64
pub fn set_duration(&mut self, value: i64)
pub fn position(&self) -> isize
pub fn set_position(&mut self, value: isize)
pub fn convergence(&self) -> isize
pub fn side_data(&self) -> SideDataIter<'_>ⓘNotable traits for SideDataIter<'a>impl<'a> Iterator for SideDataIter<'a> type Item = SideData<'a>;
pub fn data(&self) -> Option<&[u8]>
pub fn data_mut(&mut self) -> Option<&mut [u8]>
pub fn read(&mut self, format: &mut Input) -> Result<(), Error>
pub fn write(&self, format: &mut Output) -> Result<bool, Error>
pub fn write_interleaved(&self, format: &mut Output) -> Result<(), Error>
Trait Implementations
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more