pub(crate) struct SensorSettings {
pub(crate) scans_per_read: i32,
pub(crate) scan_rate_hz: f64,
pub(crate) channels_enabled: Vec<u8>,
pub(crate) gains: i32,
pub(crate) data_formats: Vec<String>,
pub(crate) measurement_units: Vec<String>,
pub(crate) labjack_on_off: bool,
}Expand description
Raw sensor settings section from the dashboard configuration document.
Field aliases preserve compatibility with older configuration names while
letting the runtime use the clearer scans_per_read and scan_rate_hz
names internally.
Fields§
§scans_per_read: i32Scans returned by each LJM stream read. Legacy name: scan_rate.
scan_rate_hz: f64Requested scan rate in Hz (scans per second across all channels). Legacy
name: sampling_rate.
channels_enabled: Vec<u8>Analog input numbers to stream (7 means AIN7), in scan order.
gains: i32Gain setting from the dashboard. Not used by the streamer.
data_formats: Vec<String>Per-channel data format labels. Not used by the streamer.
measurement_units: Vec<String>Per-channel unit labels. Not used by the streamer.
labjack_on_off: boolWhether sampling is enabled. false keeps the LabJack stream stopped.
Trait Implementations§
Source§impl Clone for SensorSettings
impl Clone for SensorSettings
Source§fn clone(&self) -> SensorSettings
fn clone(&self) -> SensorSettings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SensorSettings
impl Debug for SensorSettings
Source§impl<'de> Deserialize<'de> for SensorSettings
impl<'de> Deserialize<'de> for SensorSettings
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 SensorSettings
impl RefUnwindSafe for SensorSettings
impl Send for SensorSettings
impl Sync for SensorSettings
impl Unpin for SensorSettings
impl UnsafeUnpin for SensorSettings
impl UnwindSafe for SensorSettings
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