pub struct ReplayTimeline {
pub name: String,
pub instants: Vec<Instant>,
pub payloads: Vec<Option<Value>>,
pub scale: TimeScale,
}Expand description
A recorded timeline of Instants with optional payloads (W12).
Fields§
§name: StringThe timeline’s name/identifier.
instants: Vec<Instant>The recorded Instants in order.
payloads: Vec<Option<Value>>Optional payloads for each Instant (e.g. sensor readings).
scale: TimeScaleThe time scale of this timeline.
Implementations§
Source§impl ReplayTimeline
impl ReplayTimeline
Sourcepub fn new(name: &str, scale: TimeScale) -> Self
pub fn new(name: &str, scale: TimeScale) -> Self
Create a new empty timeline with the given name and scale.
Sourcepub fn from_secs_nanos(name: &str, scale: TimeScale, pts: &[(i64, u32)]) -> Self
pub fn from_secs_nanos(name: &str, scale: TimeScale, pts: &[(i64, u32)]) -> Self
Create a timeline from a sequence of (secs, nanos) pairs.
Trait Implementations§
Source§impl Clone for ReplayTimeline
impl Clone for ReplayTimeline
Source§impl Debug for ReplayTimeline
impl Debug for ReplayTimeline
Source§impl PartialEq for ReplayTimeline
impl PartialEq for ReplayTimeline
impl StructuralPartialEq for ReplayTimeline
Auto Trait Implementations§
impl Freeze for ReplayTimeline
impl RefUnwindSafe for ReplayTimeline
impl Send for ReplayTimeline
impl Sync for ReplayTimeline
impl Unpin for ReplayTimeline
impl UnsafeUnpin for ReplayTimeline
impl UnwindSafe for ReplayTimeline
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