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§
source§impl Clone for MsgSettingsReadByIndexResp
impl Clone for MsgSettingsReadByIndexResp
source§fn clone(&self) -> MsgSettingsReadByIndexResp
fn clone(&self) -> MsgSettingsReadByIndexResp
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl ConcreteMessage for MsgSettingsReadByIndexResp
impl ConcreteMessage for MsgSettingsReadByIndexResp
source§const MESSAGE_TYPE: u16 = 167u16
const MESSAGE_TYPE: u16 = 167u16
source§const MESSAGE_NAME: &'static str = "MSG_SETTINGS_READ_BY_INDEX_RESP"
const MESSAGE_NAME: &'static str = "MSG_SETTINGS_READ_BY_INDEX_RESP"
source§impl Debug for MsgSettingsReadByIndexResp
impl Debug for MsgSettingsReadByIndexResp
source§impl<'de> Deserialize<'de> for MsgSettingsReadByIndexResp
impl<'de> Deserialize<'de> for MsgSettingsReadByIndexResp
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>,
source§impl FriendlyName for MsgSettingsReadByIndexResp
impl FriendlyName for MsgSettingsReadByIndexResp
fn friendly_name() -> &'static str
source§impl From<MsgSettingsReadByIndexResp> for Sbp
impl From<MsgSettingsReadByIndexResp> for Sbp
source§fn from(msg: MsgSettingsReadByIndexResp) -> Self
fn from(msg: MsgSettingsReadByIndexResp) -> Self
source§impl PartialEq for MsgSettingsReadByIndexResp
impl PartialEq for MsgSettingsReadByIndexResp
source§fn eq(&self, other: &MsgSettingsReadByIndexResp) -> bool
fn eq(&self, other: &MsgSettingsReadByIndexResp) -> bool
self
and other
values to be equal, and is used
by ==
.