pub struct ReceivedTimestamp(/* private fields */);Expand description
A received media timestamp in signed 100-nanosecond ticks.
The source and capture path determine the tick origin. For example, on
Linux x86-64 with NDI Advanced and the File library 6.4.0.2, seeking a
single-track file produced a video frame whose timestamp matched the
file-relative PTS in the player’s FirstFrame event.
An undefined timestamp is represented as None by media accessors.
FrameSync and AV-sync audio also treat zero as undefined.
Order these values only when they share a tick origin. Use Self::ticks
and interpret the ticks for the specific source before comparing them
with an SdkTimestamp.
Implementations§
Trait Implementations§
Source§impl Clone for ReceivedTimestamp
impl Clone for ReceivedTimestamp
impl Copy for ReceivedTimestamp
Source§impl Debug for ReceivedTimestamp
impl Debug for ReceivedTimestamp
impl Eq for ReceivedTimestamp
Source§impl Hash for ReceivedTimestamp
impl Hash for ReceivedTimestamp
Source§impl Ord for ReceivedTimestamp
impl Ord for ReceivedTimestamp
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ReceivedTimestamp
impl PartialEq for ReceivedTimestamp
Source§impl PartialOrd for ReceivedTimestamp
impl PartialOrd for ReceivedTimestamp
impl StructuralPartialEq for ReceivedTimestamp
Auto Trait Implementations§
impl Freeze for ReceivedTimestamp
impl RefUnwindSafe for ReceivedTimestamp
impl Send for ReceivedTimestamp
impl Sync for ReceivedTimestamp
impl Unpin for ReceivedTimestamp
impl UnsafeUnpin for ReceivedTimestamp
impl UnwindSafe for ReceivedTimestamp
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