pub struct Timed<P> {
pub value: P,
pub at: Timestamp,
}Expand description
A value read from a track, and its frame’s timestamp.
Writes take the same pair as two arguments, (value, at). On a timed track at is when the
value was captured. A scale-less track has no time, so there it is [Timestamp::unscaled] at
a group key: a write that opens a group starts it at that key, which must pass every group the
track holds, as append_group requires.
Fields§
§value: PThe value.
at: TimestampThe frame’s timestamp: its capture time, or its group key on a scale-less track.
Implementations§
Trait Implementations§
impl<P: Copy> Copy for Timed<P>
impl<P: Eq> Eq for Timed<P>
impl<P: PartialEq> StructuralPartialEq for Timed<P>
Auto Trait Implementations§
impl<P> Freeze for Timed<P>where
P: Freeze,
impl<P> RefUnwindSafe for Timed<P>where
P: RefUnwindSafe,
impl<P> Send for Timed<P>where
P: Send,
impl<P> Sync for Timed<P>where
P: Sync,
impl<P> Unpin for Timed<P>where
P: Unpin,
impl<P> UnsafeUnpin for Timed<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for Timed<P>where
P: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.