pub struct ParamConfig {Show 15 fields
pub parameter: u16,
pub mask: Option<u32>,
pub key: String,
pub label: String,
pub description: Option<String>,
pub size: u8,
pub min: i64,
pub max: i64,
pub default: i64,
pub unsigned: bool,
pub read_only: bool,
pub write_only: bool,
pub allow_manual_entry: bool,
pub options: Vec<(i64, String)>,
pub unit: Option<String>,
}Expand description
A configuration parameter as the file describes it for this device.
Fields§
§parameter: u16Parameter number.
mask: Option<u32>Bit mask of a partial parameter.
key: StringThe key as written in the file: "41" or "41[0xf00]".
label: StringLabel.
description: Option<String>Description.
size: u8Size in bytes: 1, 2 or 4.
min: i64Minimum value.
max: i64Maximum value.
default: i64Default value.
unsigned: boolThe value is unsigned.
read_only: boolCannot be written.
write_only: boolCannot be read.
allow_manual_entry: boolValues other than the options may be entered.
options: Vec<(i64, String)>Named values.
unit: Option<String>Unit.
Trait Implementations§
Source§impl Clone for ParamConfig
impl Clone for ParamConfig
Source§impl Debug for ParamConfig
impl Debug for ParamConfig
Source§impl PartialEq for ParamConfig
impl PartialEq for ParamConfig
impl StructuralPartialEq for ParamConfig
Auto Trait Implementations§
impl Freeze for ParamConfig
impl RefUnwindSafe for ParamConfig
impl Send for ParamConfig
impl Sync for ParamConfig
impl Unpin for ParamConfig
impl UnsafeUnpin for ParamConfig
impl UnwindSafe for ParamConfig
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