pub struct TimestampedSignalFrame {
pub signal_frame: SignalFrame,
pub timestamp: Instant,
pub relative_time: Duration,
}Expand description
Timestamped version of SignalFrame for efficient buffering
Fields§
§signal_frame: SignalFrameThe lightweight signal frame
timestamp: InstantHigh-resolution timestamp when frame was received
relative_time: DurationTime relative to collection start
Implementations§
Source§impl TimestampedSignalFrame
impl TimestampedSignalFrame
Sourcepub fn new(signal_frame: SignalFrame, start_time: Instant) -> Self
pub fn new(signal_frame: SignalFrame, start_time: Instant) -> Self
Create a new timestamped signal frame from lightweight signal frame Just adds high-resolution timestamp to existing SignalFrame
Trait Implementations§
Source§impl Clone for TimestampedSignalFrame
impl Clone for TimestampedSignalFrame
Source§fn clone(&self) -> TimestampedSignalFrame
fn clone(&self) -> TimestampedSignalFrame
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TimestampedSignalFrame
impl RefUnwindSafe for TimestampedSignalFrame
impl Send for TimestampedSignalFrame
impl Sync for TimestampedSignalFrame
impl Unpin for TimestampedSignalFrame
impl UnwindSafe for TimestampedSignalFrame
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