Struct sbp::messages::system::msg_dgnss_status::MsgDgnssStatus
source · pub struct MsgDgnssStatus {
pub sender_id: Option<u16>,
pub flags: u8,
pub latency: u16,
pub num_signals: u8,
pub source: SbpString<Vec<u8>, Unterminated>,
}
Expand description
Status of received corrections
This message provides information about the receipt of Differential corrections. It is expected to be sent with each receipt of a complete corrections packet.
Fields§
§sender_id: Option<u16>
The message sender_id
flags: u8
Status flags
latency: u16
Latency of observation receipt
num_signals: u8
Number of signals from base station
source: SbpString<Vec<u8>, Unterminated>
Corrections source string
Implementations§
source§impl MsgDgnssStatus
impl MsgDgnssStatus
sourcepub fn differential_type(&self) -> Result<DifferentialType, u8>
pub fn differential_type(&self) -> Result<DifferentialType, u8>
Gets the DifferentialType stored in the flags
bitfield.
Returns Ok
if the bitrange contains a known DifferentialType
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 DifferentialType
were added.
sourcepub fn set_differential_type(&mut self, differential_type: DifferentialType)
pub fn set_differential_type(&mut self, differential_type: DifferentialType)
Set the bitrange corresponding to the DifferentialType of the flags
bitfield.
Trait Implementations§
source§impl Clone for MsgDgnssStatus
impl Clone for MsgDgnssStatus
source§fn clone(&self) -> MsgDgnssStatus
fn clone(&self) -> MsgDgnssStatus
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl ConcreteMessage for MsgDgnssStatus
impl ConcreteMessage for MsgDgnssStatus
source§const MESSAGE_TYPE: u16 = 65_282u16
const MESSAGE_TYPE: u16 = 65_282u16
The message type.
source§const MESSAGE_NAME: &'static str = "MSG_DGNSS_STATUS"
const MESSAGE_NAME: &'static str = "MSG_DGNSS_STATUS"
The message name.
source§impl Debug for MsgDgnssStatus
impl Debug for MsgDgnssStatus
source§impl<'de> Deserialize<'de> for MsgDgnssStatus
impl<'de> Deserialize<'de> for MsgDgnssStatus
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl FriendlyName for MsgDgnssStatus
impl FriendlyName for MsgDgnssStatus
fn friendly_name() -> &'static str
source§impl From<MsgDgnssStatus> for Sbp
impl From<MsgDgnssStatus> for Sbp
source§fn from(msg: MsgDgnssStatus) -> Self
fn from(msg: MsgDgnssStatus) -> Self
Converts to this type from the input type.
source§impl PartialEq for MsgDgnssStatus
impl PartialEq for MsgDgnssStatus
source§fn eq(&self, other: &MsgDgnssStatus) -> bool
fn eq(&self, other: &MsgDgnssStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SbpMessage for MsgDgnssStatus
impl SbpMessage for MsgDgnssStatus
source§fn message_name(&self) -> &'static str
fn message_name(&self) -> &'static str
Get the message name.
source§fn message_type(&self) -> Option<u16>
fn message_type(&self) -> Option<u16>
Get the message type.
source§fn set_sender_id(&mut self, new_id: u16)
fn set_sender_id(&mut self, new_id: u16)
Set the sender id.
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Number of bytes this message will take on the wire.
source§fn is_valid(&self) -> bool
fn is_valid(&self) -> bool
Tells you if the message is valid or if it is not a valid message and may need to be
special cased at certain points.
fn into_valid_msg(self) -> Result<Self, Invalid>
source§fn gps_time(&self) -> Option<Result<MessageTime, GpsTimeError>>
fn gps_time(&self) -> Option<Result<MessageTime, GpsTimeError>>
Get the GPS time associated with the message.
source§fn friendly_name(&self) -> &'static str
fn friendly_name(&self) -> &'static str
Get friendly name associated with the message.
source§impl Serialize for MsgDgnssStatus
impl Serialize for MsgDgnssStatus
source§impl TryFrom<Sbp> for MsgDgnssStatus
impl TryFrom<Sbp> for MsgDgnssStatus
impl StructuralPartialEq for MsgDgnssStatus
Auto Trait Implementations§
impl Freeze for MsgDgnssStatus
impl RefUnwindSafe for MsgDgnssStatus
impl Send for MsgDgnssStatus
impl Sync for MsgDgnssStatus
impl Unpin for MsgDgnssStatus
impl UnwindSafe for MsgDgnssStatus
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
source§impl<T> Event for Twhere
T: ConcreteMessage,
impl<T> Event for Twhere
T: ConcreteMessage,
source§const MESSAGE_TYPES: &'static [u16] = const MESSAGE_TYPES: &'static [u16] = &[T::MESSAGE_TYPE];
const MESSAGE_TYPES: &'static [u16] = const MESSAGE_TYPES: &'static [u16] = &[T::MESSAGE_TYPE];
The message types that correspond to this event. An empty slice means all messages.