pub struct OscilloscopeFrame {
pub points_l: Vec<f32>,
pub points_r: Vec<f32>,
pub sample_rate: f32,
pub timestamp: u64,
pub no_signal: bool,
pub trigger_mode: OscilloscopeTriggerMode,
}Expand description
Oscilloscope waveform frame data for UI visualization.
Fields§
§points_l: Vec<f32>Left channel waveform points (length 1024).
points_r: Vec<f32>Right channel waveform points (length 1024).
sample_rate: f32Sample rate in Hz used to capture the frame.
timestamp: u64Sample timestamp (monotonic).
no_signal: boolTrue when signal amplitude stayed below threshold for full frame.
trigger_mode: OscilloscopeTriggerModeTrigger mode used for alignment.
Trait Implementations§
Source§impl Clone for OscilloscopeFrame
impl Clone for OscilloscopeFrame
Source§fn clone(&self) -> OscilloscopeFrame
fn clone(&self) -> OscilloscopeFrame
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 moreSource§impl Debug for OscilloscopeFrame
impl Debug for OscilloscopeFrame
Source§impl<'de> Deserialize<'de> for OscilloscopeFrame
impl<'de> Deserialize<'de> for OscilloscopeFrame
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OscilloscopeFrame
impl RefUnwindSafe for OscilloscopeFrame
impl Send for OscilloscopeFrame
impl Sync for OscilloscopeFrame
impl Unpin for OscilloscopeFrame
impl UnwindSafe for OscilloscopeFrame
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