Struct sbp::messages::navigation::msg_utc_leap_second::MsgUtcLeapSecond
source · pub struct MsgUtcLeapSecond {
pub sender_id: Option<u16>,
pub reserved_0: i16,
pub reserved_1: i16,
pub reserved_2: i8,
pub count_before: i8,
pub reserved_3: u16,
pub reserved_4: u16,
pub ref_wn: u16,
pub ref_dn: u8,
pub count_after: i8,
}
Expand description
Leap second SBP message.
UTC-GPST leap seconds before and after the most recent (past, or future, for announced insertions) UTC leap second insertion.
Fields§
§sender_id: Option<u16>
The message sender_id
reserved_0: i16
Reserved.
reserved_1: i16
Reserved.
reserved_2: i8
Reserved.
count_before: i8
Leap second count before insertion.
reserved_3: u16
Reserved.
reserved_4: u16
Reserved.
ref_wn: u16
Leap second reference GPS week number.
ref_dn: u8
Leap second reference day number.
count_after: i8
Leap second count after insertion.
Trait Implementations§
source§impl Clone for MsgUtcLeapSecond
impl Clone for MsgUtcLeapSecond
source§fn clone(&self) -> MsgUtcLeapSecond
fn clone(&self) -> MsgUtcLeapSecond
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 MsgUtcLeapSecond
impl ConcreteMessage for MsgUtcLeapSecond
source§const MESSAGE_TYPE: u16 = 570u16
const MESSAGE_TYPE: u16 = 570u16
The message type.
source§const MESSAGE_NAME: &'static str = "MSG_UTC_LEAP_SECOND"
const MESSAGE_NAME: &'static str = "MSG_UTC_LEAP_SECOND"
The message name.
source§impl Debug for MsgUtcLeapSecond
impl Debug for MsgUtcLeapSecond
source§impl<'de> Deserialize<'de> for MsgUtcLeapSecond
impl<'de> Deserialize<'de> for MsgUtcLeapSecond
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 MsgUtcLeapSecond
impl FriendlyName for MsgUtcLeapSecond
fn friendly_name() -> &'static str
source§impl From<MsgUtcLeapSecond> for Sbp
impl From<MsgUtcLeapSecond> for Sbp
source§fn from(msg: MsgUtcLeapSecond) -> Self
fn from(msg: MsgUtcLeapSecond) -> Self
Converts to this type from the input type.
source§impl PartialEq for MsgUtcLeapSecond
impl PartialEq for MsgUtcLeapSecond
source§fn eq(&self, other: &MsgUtcLeapSecond) -> bool
fn eq(&self, other: &MsgUtcLeapSecond) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SbpMessage for MsgUtcLeapSecond
impl SbpMessage for MsgUtcLeapSecond
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 MsgUtcLeapSecond
impl Serialize for MsgUtcLeapSecond
source§impl TryFrom<Sbp> for MsgUtcLeapSecond
impl TryFrom<Sbp> for MsgUtcLeapSecond
impl StructuralPartialEq for MsgUtcLeapSecond
Auto Trait Implementations§
impl Freeze for MsgUtcLeapSecond
impl RefUnwindSafe for MsgUtcLeapSecond
impl Send for MsgUtcLeapSecond
impl Sync for MsgUtcLeapSecond
impl Unpin for MsgUtcLeapSecond
impl UnwindSafe for MsgUtcLeapSecond
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.