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: String,
pub lat_degrees: Option<u8>,
pub lat_minutes: Option<u8>,
pub lat_seconds: Option<u8>,
pub lat_direction: CardinalDirection,
pub long_degrees: Option<u16>,
pub long_minutes: Option<u8>,
pub long_seconds: Option<u8>,
pub long_direction: CardinalDirection,
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: StringSignal strength indication.
lat_degrees: Option<u8>Latitude degrees. None if not available.
lat_minutes: Option<u8>Latitude minutes. None if not available.
lat_seconds: Option<u8>Latitude seconds. None if not available.
lat_direction: CardinalDirectionNorth or South.
long_degrees: Option<u16>Longitude degrees. None if not available.
long_minutes: Option<u8>Longitude minutes. None if not available.
long_seconds: Option<u8>Longitude seconds. None if not available.
long_direction: CardinalDirectionWest or East.
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 duplicate 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
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