Struct wte_mt_rx_parser::mt_structured::MtStructured
source · pub struct MtStructured {Show 16 fields
pub header: String,
pub id: String,
pub sequence_number: usize,
pub message_type: MtMessageType,
pub format_flag: char,
pub beacon: String,
pub signal_strength: [char; 2],
pub lat_degrees: u8,
pub lat_minutes: u8,
pub lat_seconds: u8,
pub n: char,
pub long_degrees: u16,
pub long_minutes: u8,
pub long_seconds: u8,
pub w: char,
pub checksum: u16,
}Expand description
MT Serial Out Packet Format.
Fields§
§header: StringMT1.
id: StringMT-RX configurable ID.
sequence_number: usizeCycling packet sequence number.
message_type: MtMessageTypeMessage type.
format_flag: charCharacter format flag.
beacon: StringBeacon hex code.
signal_strength: [char; 2]Signal strength indication.
lat_degrees: u8Latitude degrees.
lat_minutes: u8Latitude minutes.
lat_seconds: u8Latitude seconds.
n: charN or S.
long_degrees: u16Longitude degrees.
long_minutes: u8Longitude minutes.
long_seconds: u8Longitude seconds.
w: charW or E.
checksum: u16Checksum.
If there is no location information available, hence the value will be 0.
Trait Implementations§
source§impl Clone for MtStructured
impl Clone for MtStructured
source§fn clone(&self) -> MtStructured
fn clone(&self) -> MtStructured
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 Debug for MtStructured
impl Debug for MtStructured
source§impl PartialEq for MtStructured
impl PartialEq for MtStructured
source§fn eq(&self, other: &MtStructured) -> bool
fn eq(&self, other: &MtStructured) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for MtStructured
Auto Trait Implementations§
impl Freeze for MtStructured
impl RefUnwindSafe for MtStructured
impl Send for MtStructured
impl Sync for MtStructured
impl Unpin for MtStructured
impl UnwindSafe for MtStructured
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)