pub enum AprsTimestamp {
DhmZulu {
day: u8,
hour: u8,
minute: u8,
},
DhmLocal {
day: u8,
hour: u8,
minute: u8,
},
Hms {
hour: u8,
minute: u8,
second: u8,
},
Mdhm {
month: u8,
day: u8,
hour: u8,
minute: u8,
},
}Expand description
An APRS timestamp as used by object and position-with-timestamp reports (APRS 1.0.1 §6.1).
Four formats are defined on the wire:
| Suffix | Meaning | Digits |
|---|---|---|
z | Day / hour / minute, zulu | DDHHMM |
/ | Day / hour / minute, local | DDHHMM |
h | Hour / minute / second, zulu | HHMMSS |
| (none) | Month / day / hour / minute, zulu (11 chars) | MDHM |
Variants§
DhmZulu
Day / hour / minute in Zulu (UTC) time. Format DDHHMMz.
DhmLocal
Day / hour / minute in local time. Format DDHHMM/.
Hms
Hour / minute / second in Zulu (UTC) time. Format HHMMSSh.
Mdhm
Month / day / hour / minute in Zulu (UTC) time (no suffix).
Format MMDDHHMM.
Implementations§
Source§impl AprsTimestamp
impl AprsTimestamp
Sourcepub fn to_wire_string(self) -> String
pub fn to_wire_string(self) -> String
Format this timestamp as the exact 7-byte APRS wire representation
(or 8 bytes for Mdhm).
Trait Implementations§
Source§impl Clone for AprsTimestamp
impl Clone for AprsTimestamp
Source§fn clone(&self) -> AprsTimestamp
fn clone(&self) -> AprsTimestamp
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 AprsTimestamp
impl Debug for AprsTimestamp
Source§impl Hash for AprsTimestamp
impl Hash for AprsTimestamp
Source§impl PartialEq for AprsTimestamp
impl PartialEq for AprsTimestamp
impl Copy for AprsTimestamp
impl Eq for AprsTimestamp
impl StructuralPartialEq for AprsTimestamp
Auto Trait Implementations§
impl Freeze for AprsTimestamp
impl RefUnwindSafe for AprsTimestamp
impl Send for AprsTimestamp
impl Sync for AprsTimestamp
impl Unpin for AprsTimestamp
impl UnwindSafe for AprsTimestamp
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