pub struct CaptureData {
pub channels: Vec<Vec<f64>>,
pub channel_count: usize,
pub capture_length: usize,
pub pre_trigger_samples: usize,
pub actual_samples: usize,
pub sample_rate: f64,
pub timestamp_ns: u64,
pub sequence: u64,
}Expand description
Captured data returned after a successful DAQ trigger.
Fields§
§channels: Vec<Vec<f64>>Sample data per channel. Outer index = channel, inner = samples.
Layout: channels[ch_idx][sample_idx].
channel_count: usizeNumber of channels in the capture.
capture_length: usizeConfigured post-trigger samples per channel.
pre_trigger_samples: usizeConfigured pre-trigger samples per channel.
actual_samples: usizeActual samples written per channel (pre + post).
sample_rate: f64Sample rate in Hz.
timestamp_ns: u64UNIX timestamp (nanoseconds) of the trigger event.
sequence: u64Capture sequence number (monotonically increasing).
Trait Implementations§
Source§impl Clone for CaptureData
impl Clone for CaptureData
Source§fn clone(&self) -> CaptureData
fn clone(&self) -> CaptureData
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 CaptureData
impl RefUnwindSafe for CaptureData
impl Send for CaptureData
impl Sync for CaptureData
impl Unpin for CaptureData
impl UnsafeUnpin for CaptureData
impl UnwindSafe for CaptureData
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