pub struct StampedTime {
pub clock: ClockId,
pub domain: ClockDomain,
pub timestamp: Timestamp,
pub quality: SyncQuality,
}Expand description
Timestamp anchored to an explicit clock domain and sync quality.
Fields§
§clock: ClockIdClock that produced the timestamp.
domain: ClockDomainDomain class for the clock.
timestamp: TimestampRaw timestamp on clock.
quality: SyncQualitySync quality versus an episode reference clock.
Implementations§
Source§impl StampedTime
impl StampedTime
Sourcepub fn exact(
clock: impl Into<ClockId>,
domain: ClockDomain,
timestamp: Timestamp,
) -> Self
pub fn exact( clock: impl Into<ClockId>, domain: ClockDomain, timestamp: Timestamp, ) -> Self
Creates a stamped time with exact sync quality.
Sourcepub fn abs_delta_ns(&self, other: &Self) -> u64
pub fn abs_delta_ns(&self, other: &Self) -> u64
Absolute nanosecond distance to another stamp (ignores clock identity).
Trait Implementations§
Source§impl Clone for StampedTime
impl Clone for StampedTime
Source§fn clone(&self) -> StampedTime
fn clone(&self) -> StampedTime
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 moreSource§impl Debug for StampedTime
impl Debug for StampedTime
Source§impl PartialEq for StampedTime
impl PartialEq for StampedTime
Source§fn eq(&self, other: &StampedTime) -> bool
fn eq(&self, other: &StampedTime) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for StampedTime
impl StructuralPartialEq for StampedTime
Auto Trait Implementations§
impl Freeze for StampedTime
impl RefUnwindSafe for StampedTime
impl Send for StampedTime
impl Sync for StampedTime
impl Unpin for StampedTime
impl UnsafeUnpin for StampedTime
impl UnwindSafe for StampedTime
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