pub struct TimeAnchor {
pub pts_90k: u64,
pub utc_epoch_ms: i64,
}Expand description
Maps a known 90 kHz PTS to the UTC instant it represents (linear at 90 kHz).
Fields§
§pts_90k: u64A reference PTS, in 90 kHz ticks.
utc_epoch_ms: i64The UTC time that pts_90k corresponds to, in milliseconds since the Unix epoch.
Implementations§
Trait Implementations§
Source§impl Clone for TimeAnchor
impl Clone for TimeAnchor
Source§fn clone(&self) -> TimeAnchor
fn clone(&self) -> TimeAnchor
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 TimeAnchor
Source§impl Debug for TimeAnchor
impl Debug for TimeAnchor
Source§impl<'de> Deserialize<'de> for TimeAnchor
impl<'de> Deserialize<'de> for TimeAnchor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TimeAnchor
Source§impl PartialEq for TimeAnchor
impl PartialEq for TimeAnchor
Source§fn eq(&self, other: &TimeAnchor) -> bool
fn eq(&self, other: &TimeAnchor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TimeAnchor
impl Serialize for TimeAnchor
impl StructuralPartialEq for TimeAnchor
Auto Trait Implementations§
impl Freeze for TimeAnchor
impl RefUnwindSafe for TimeAnchor
impl Send for TimeAnchor
impl Sync for TimeAnchor
impl Unpin for TimeAnchor
impl UnsafeUnpin for TimeAnchor
impl UnwindSafe for TimeAnchor
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