Struct sbp::messages::ssr::msg_ssr_orbit_clock_bounds_degradation::MsgSsrOrbitClockBoundsDegradation
source · pub struct MsgSsrOrbitClockBoundsDegradation {
pub sender_id: Option<u16>,
pub header: BoundsHeader,
pub ssr_iod: u8,
pub const_id: u8,
pub sat_bitmask: u64,
pub orbit_clock_bounds_degradation: OrbitClockBoundDegradation,
}
Expand description
Combined Orbit and Clock Bound Degradation Parameter
Fields§
§sender_id: Option<u16>
The message sender_id
header: BoundsHeader
Header of a bounds message.
ssr_iod: u8
IOD of the SSR bound degradation parameter.
const_id: u8
Constellation ID to which the SVs belong.
sat_bitmask: u64
Satellite Bit Mask. Put 1 for each satellite where the following degradation parameters are applicable, 0 otherwise. Encoded following RTCM DF394 specification.
orbit_clock_bounds_degradation: OrbitClockBoundDegradation
Orbit and Clock Bounds Degradation Parameters
Implementations§
source§impl MsgSsrOrbitClockBoundsDegradation
impl MsgSsrOrbitClockBoundsDegradation
sourcepub fn const_id(&self) -> Result<ConstId, u8>
pub fn const_id(&self) -> Result<ConstId, u8>
Gets the ConstId stored in the const_id
bitfield.
Returns Ok
if the bitrange contains a known ConstId
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 ConstId
were added.
sourcepub fn set_const_id(&mut self, const_id: ConstId)
pub fn set_const_id(&mut self, const_id: ConstId)
Set the bitrange corresponding to the ConstId of the const_id
bitfield.
Trait Implementations§
source§impl Clone for MsgSsrOrbitClockBoundsDegradation
impl Clone for MsgSsrOrbitClockBoundsDegradation
source§fn clone(&self) -> MsgSsrOrbitClockBoundsDegradation
fn clone(&self) -> MsgSsrOrbitClockBoundsDegradation
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 MsgSsrOrbitClockBoundsDegradation
impl ConcreteMessage for MsgSsrOrbitClockBoundsDegradation
source§const MESSAGE_TYPE: u16 = 1_503u16
const MESSAGE_TYPE: u16 = 1_503u16
The message type.
source§const MESSAGE_NAME: &'static str = "MSG_SSR_ORBIT_CLOCK_BOUNDS_DEGRADATION"
const MESSAGE_NAME: &'static str = "MSG_SSR_ORBIT_CLOCK_BOUNDS_DEGRADATION"
The message name.
source§impl<'de> Deserialize<'de> for MsgSsrOrbitClockBoundsDegradation
impl<'de> Deserialize<'de> for MsgSsrOrbitClockBoundsDegradation
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 MsgSsrOrbitClockBoundsDegradation
impl FriendlyName for MsgSsrOrbitClockBoundsDegradation
fn friendly_name() -> &'static str
source§impl From<MsgSsrOrbitClockBoundsDegradation> for Sbp
impl From<MsgSsrOrbitClockBoundsDegradation> for Sbp
source§fn from(msg: MsgSsrOrbitClockBoundsDegradation) -> Self
fn from(msg: MsgSsrOrbitClockBoundsDegradation) -> Self
Converts to this type from the input type.
source§impl PartialEq for MsgSsrOrbitClockBoundsDegradation
impl PartialEq for MsgSsrOrbitClockBoundsDegradation
source§fn eq(&self, other: &MsgSsrOrbitClockBoundsDegradation) -> bool
fn eq(&self, other: &MsgSsrOrbitClockBoundsDegradation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SbpMessage for MsgSsrOrbitClockBoundsDegradation
impl SbpMessage for MsgSsrOrbitClockBoundsDegradation
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.
impl StructuralPartialEq for MsgSsrOrbitClockBoundsDegradation
Auto Trait Implementations§
impl Freeze for MsgSsrOrbitClockBoundsDegradation
impl RefUnwindSafe for MsgSsrOrbitClockBoundsDegradation
impl Send for MsgSsrOrbitClockBoundsDegradation
impl Sync for MsgSsrOrbitClockBoundsDegradation
impl Unpin for MsgSsrOrbitClockBoundsDegradation
impl UnwindSafe for MsgSsrOrbitClockBoundsDegradation
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.