pub struct DiurnyxConfig {
pub patient: Option<PatientConfig>,
pub recording: Option<RecordingConfig>,
pub clock: Option<ClockConfig>,
pub interface: Option<InterfaceConfig>,
pub sensors: Vec<SensorConfig, MAX_SENSORS>,
pub signals: Vec<SignalConfig, MAX_SIGNALS>,
}Expand description
Diurnyx logger configuration.
Fields§
§patient: Option<PatientConfig>Optional patient information for EDF header.
recording: Option<RecordingConfig>Optional recording information for EDF header and recording configuration.
clock: Option<ClockConfig>§interface: Option<InterfaceConfig>Optional interface configurations (e.g. I2C speed).
sensors: Vec<SensorConfig, MAX_SENSORS>One or more sensor configurations.
signals: Vec<SignalConfig, MAX_SIGNALS>One or more signal definitions.
Trait Implementations§
Source§impl Debug for DiurnyxConfig
impl Debug for DiurnyxConfig
Source§impl Default for DiurnyxConfig
impl Default for DiurnyxConfig
Source§fn default() -> DiurnyxConfig
fn default() -> DiurnyxConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DiurnyxConfig
impl<'de> Deserialize<'de> for DiurnyxConfig
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 DiurnyxConfig
impl RefUnwindSafe for DiurnyxConfig
impl Send for DiurnyxConfig
impl Sync for DiurnyxConfig
impl Unpin for DiurnyxConfig
impl UnwindSafe for DiurnyxConfig
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