Struct sbp::messages::settings::MsgSettingsReadByIndexResp [−][src]
pub struct MsgSettingsReadByIndexResp {
pub sender_id: Option<u16>,
pub index: u16,
pub setting: SbpString<Vec<u8>, Multipart>,
}
Expand description
Read setting by direct index (host <= device)
The settings message that reports the value of a setting at an index.
In the string field, it reports NULL-terminated and delimited string with contents “SECTION_SETTING\0SETTING\0VALUE\0FORMAT_TYPE\0”. where the ‘\0’ escape sequence denotes the NULL character and where quotation marks are omitted. The FORMAT_TYPE field is optional and denotes possible string values of the setting as a hint to the user. If included, the format type portion of the string has the format “enum:value1,value2,value3”. An example string that could be sent from the device is “simulator\0enabled\0True\0enum:True,False\0”.
Fields
sender_id: Option<u16>
The message sender_id
index: u16
An index into the device settings, with values ranging from 0 to length(settings)
setting: SbpString<Vec<u8>, Multipart>
A NULL-terminated and delimited string with contents “SECTION_SETTING\0SETTING\0VALUE\0FORMAT_TYPE\0”
Trait Implementations
The message type.
The message name.
Performs the conversion.
Get the message name.
Get the message type.
Set the sender id.
Number of bytes this message will take on the wire.
Auto Trait Implementations
impl RefUnwindSafe for MsgSettingsReadByIndexResp
impl Send for MsgSettingsReadByIndexResp
impl Sync for MsgSettingsReadByIndexResp
impl Unpin for MsgSettingsReadByIndexResp
impl UnwindSafe for MsgSettingsReadByIndexResp
Blanket Implementations
Mutably borrows from an owned value. Read more