pub struct SpliceTime {
pub pts_time: Option<u64>,
}Expand description
splice_time() — §9.8.1, Table 14.
When pts_time is present it is a 33-bit count of 90 kHz ticks; absent
(time_specified_flag == 0) it signals an immediate command.
Fields§
§pts_time: Option<u64>33-bit pts_time in 90 kHz ticks, or None when
time_specified_flag == 0.
Implementations§
Source§impl SpliceTime
impl SpliceTime
Sourcepub const LEN_WITH_TIME: usize = 5
pub const LEN_WITH_TIME: usize = 5
Bytes this structure serializes to: 5 when a pts_time is present
(1 flag/reserved byte + the 33-bit field spread over 5 bytes), else 1.
Sourcepub const LEN_NO_TIME: usize = 1
pub const LEN_NO_TIME: usize = 1
Length when time_specified_flag == 0.
Sourcepub fn with_pts(pts_time: u64) -> Self
pub fn with_pts(pts_time: u64) -> Self
A splice_time() carrying an explicit 33-bit pts_time (ticks).
Sourcepub fn pts_time_duration(&self) -> Option<Duration>
pub fn pts_time_duration(&self) -> Option<Duration>
The pts_time decoded to a Duration, if present.
Trait Implementations§
Source§impl Clone for SpliceTime
impl Clone for SpliceTime
Source§fn clone(&self) -> SpliceTime
fn clone(&self) -> SpliceTime
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 moreimpl Copy for SpliceTime
Source§impl Debug for SpliceTime
impl Debug for SpliceTime
Source§impl Default for SpliceTime
impl Default for SpliceTime
Source§fn default() -> SpliceTime
fn default() -> SpliceTime
Returns the “default value” for a type. Read more
impl Eq for SpliceTime
Source§impl<'a> Parse<'a> for SpliceTime
impl<'a> Parse<'a> for SpliceTime
Source§impl PartialEq for SpliceTime
impl PartialEq for SpliceTime
Source§fn eq(&self, other: &SpliceTime) -> bool
fn eq(&self, other: &SpliceTime) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SpliceTime
impl Serialize for SpliceTime
Source§impl Serialize for SpliceTime
impl Serialize for SpliceTime
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.impl StructuralPartialEq for SpliceTime
Auto Trait Implementations§
impl Freeze for SpliceTime
impl RefUnwindSafe for SpliceTime
impl Send for SpliceTime
impl Sync for SpliceTime
impl Unpin for SpliceTime
impl UnsafeUnpin for SpliceTime
impl UnwindSafe for SpliceTime
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