pub struct OscilloscopeFrameSnapshot {
pub points_l: [f32; 1024],
pub points_r: [f32; 1024],
pub sample_rate: f32,
pub timestamp: u64,
pub no_signal: bool,
pub trigger_mode: OscilloscopeTriggerMode,
}Expand description
Internal snapshot format with fixed-size arrays (no heap allocations).
Fields§
§points_l: [f32; 1024]§points_r: [f32; 1024]§sample_rate: f32§timestamp: u64§no_signal: bool§trigger_mode: OscilloscopeTriggerModeImplementations§
Source§impl OscilloscopeFrameSnapshot
impl OscilloscopeFrameSnapshot
Sourcepub fn to_protocol_frame(&self) -> OscilloscopeFrame
pub fn to_protocol_frame(&self) -> OscilloscopeFrame
Convert fixed-size snapshot into IPC frame payload.
Trait Implementations§
Source§impl Clone for OscilloscopeFrameSnapshot
impl Clone for OscilloscopeFrameSnapshot
Source§fn clone(&self) -> OscilloscopeFrameSnapshot
fn clone(&self) -> OscilloscopeFrameSnapshot
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 OscilloscopeFrameSnapshot
impl RefUnwindSafe for OscilloscopeFrameSnapshot
impl Send for OscilloscopeFrameSnapshot
impl Sync for OscilloscopeFrameSnapshot
impl Unpin for OscilloscopeFrameSnapshot
impl UnsafeUnpin for OscilloscopeFrameSnapshot
impl UnwindSafe for OscilloscopeFrameSnapshot
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