pub struct Timestamped<T> {
pub time: MediaTime,
pub value: T,
}Expand description
A value carried with its position on the media timeline.
Used wherever an audio chunk, video frame, or cursor event flows
through the system: Timestamped<AudioChunk>, Timestamped<VideoFrame>,
Timestamped<CursorEvent>.
Fields§
§time: MediaTimeWhen the value occurred on the media timeline.
value: TThe carried value.
Implementations§
Source§impl<T> Timestamped<T>
impl<T> Timestamped<T>
Trait Implementations§
Source§impl<T: Clone> Clone for Timestamped<T>
impl<T: Clone> Clone for Timestamped<T>
Source§fn clone(&self) -> Timestamped<T>
fn clone(&self) -> Timestamped<T>
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<T: Debug> Debug for Timestamped<T>
impl<T: Debug> Debug for Timestamped<T>
Source§impl<T: Hash> Hash for Timestamped<T>
impl<T: Hash> Hash for Timestamped<T>
Source§impl<T: PartialEq> PartialEq for Timestamped<T>
impl<T: PartialEq> PartialEq for Timestamped<T>
Source§fn eq(&self, other: &Timestamped<T>) -> bool
fn eq(&self, other: &Timestamped<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<T: Copy> Copy for Timestamped<T>
impl<T: Eq> Eq for Timestamped<T>
impl<T> StructuralPartialEq for Timestamped<T>
Auto Trait Implementations§
impl<T> Freeze for Timestamped<T>where
T: Freeze,
impl<T> RefUnwindSafe for Timestamped<T>where
T: RefUnwindSafe,
impl<T> Send for Timestamped<T>where
T: Send,
impl<T> Sync for Timestamped<T>where
T: Sync,
impl<T> Unpin for Timestamped<T>where
T: Unpin,
impl<T> UnsafeUnpin for Timestamped<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Timestamped<T>where
T: 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