Struct sbp::messages::settings::MsgSettingsRegister [−][src]
pub struct MsgSettingsRegister {
pub sender_id: Option<u16>,
pub setting: SbpString<Vec<u8>, Multipart>,
}
Expand description
Register setting and default value (device => host)
This message registers the presence and default value of a setting with a settings daemon. The host should reply with MSG_SETTINGS_WRITE for this setting to set the initial value.
Fields
sender_id: Option<u16>
The message sender_id
setting: SbpString<Vec<u8>, Multipart>
A NULL-terminated and delimited string with contents “SECTION_SETTING\0SETTING\0VALUE”.
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 MsgSettingsRegister
impl Send for MsgSettingsRegister
impl Sync for MsgSettingsRegister
impl Unpin for MsgSettingsRegister
impl UnwindSafe for MsgSettingsRegister
Blanket Implementations
Mutably borrows from an owned value. Read more