Struct mpeg2ts_reader::pes::Timestamp
source · pub struct Timestamp { /* private fields */ }Expand description
A 33-bit Elementary Stream timestamp, used to represent PTS and DTS values which may appear in an Elementy Stream header.
Implementations
sourceimpl Timestamp
impl Timestamp
pub fn from_pts_bytes(buf: &[u8]) -> Result<Timestamp, TimestampError>
pub fn from_dts_bytes(buf: &[u8]) -> Result<Timestamp, TimestampError>
pub fn from_bytes(buf: &[u8]) -> Result<Timestamp, TimestampError>
pub fn value(self) -> u64
Trait Implementations
impl Copy for Timestamp
impl StructuralPartialEq for Timestamp
Auto Trait Implementations
impl RefUnwindSafe for Timestamp
impl Send for Timestamp
impl Sync for Timestamp
impl Unpin for Timestamp
impl UnwindSafe for Timestamp
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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