Struct sbp::messages::system::msg_group_meta::MsgGroupMeta
source · pub struct MsgGroupMeta {
pub sender_id: Option<u16>,
pub group_id: u8,
pub flags: u8,
pub n_group_msgs: u8,
pub group_msgs: Vec<u16>,
}
Expand description
Solution Group Metadata
This leading message lists the time metadata of the Solution Group. It also lists the atomic contents (i.e. types of messages included) of the Solution Group.
Fields§
§sender_id: Option<u16>
The message sender_id
group_id: u8
Id of the Msgs Group, 0 is Unknown, 1 is Bestpos, 2 is Gnss
flags: u8
Status flags (reserved)
n_group_msgs: u8
Size of list group_msgs
group_msgs: Vec<u16>
An in-order list of message types included in the Solution Group, including GROUP_META itself
Implementations§
source§impl MsgGroupMeta
impl MsgGroupMeta
sourcepub fn solution_group_type(&self) -> Result<SolutionGroupType, u8>
pub fn solution_group_type(&self) -> Result<SolutionGroupType, u8>
Gets the SolutionGroupType stored in the flags
bitfield.
Returns Ok
if the bitrange contains a known SolutionGroupType
variant.
Otherwise the value of the bitrange is returned as an Err(u8)
. This may be because of a malformed message,
or because new variants of SolutionGroupType
were added.
sourcepub fn set_solution_group_type(
&mut self,
solution_group_type: SolutionGroupType
)
pub fn set_solution_group_type( &mut self, solution_group_type: SolutionGroupType )
Set the bitrange corresponding to the SolutionGroupType of the flags
bitfield.
Trait Implementations§
source§impl Clone for MsgGroupMeta
impl Clone for MsgGroupMeta
source§fn clone(&self) -> MsgGroupMeta
fn clone(&self) -> MsgGroupMeta
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl ConcreteMessage for MsgGroupMeta
impl ConcreteMessage for MsgGroupMeta
source§const MESSAGE_TYPE: u16 = 65_290u16
const MESSAGE_TYPE: u16 = 65_290u16
source§const MESSAGE_NAME: &'static str = "MSG_GROUP_META"
const MESSAGE_NAME: &'static str = "MSG_GROUP_META"
source§impl Debug for MsgGroupMeta
impl Debug for MsgGroupMeta
source§impl<'de> Deserialize<'de> for MsgGroupMeta
impl<'de> Deserialize<'de> for MsgGroupMeta
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 MsgGroupMeta
impl FriendlyName for MsgGroupMeta
fn friendly_name() -> &'static str
source§impl From<MsgGroupMeta> for Sbp
impl From<MsgGroupMeta> for Sbp
source§fn from(msg: MsgGroupMeta) -> Self
fn from(msg: MsgGroupMeta) -> Self
source§impl PartialEq for MsgGroupMeta
impl PartialEq for MsgGroupMeta
source§fn eq(&self, other: &MsgGroupMeta) -> bool
fn eq(&self, other: &MsgGroupMeta) -> bool
self
and other
values to be equal, and is used
by ==
.