pub enum Timestamp {
Ddhhmm(u8, u8, u8),
Hhmmss(u8, u8, u8),
Unsupported(Vec<u8>),
}Expand description
An APRS timestamp parsed from the packet header.
APRS101 defines three formats; the local-time format (/) is represented
as Unsupported since it is deprecated and ambiguous.
Variants§
Ddhhmm(u8, u8, u8)
Day-of-month (1–31), Hour (0–23), Minute (0–59) in UTC. Suffix z.
Hhmmss(u8, u8, u8)
Hour (0–23), Minute (0–59), Second (0–59) in UTC. Suffix h.
Unsupported(Vec<u8>)
Local-time format (deprecated, suffix /). Stored as raw bytes.
Implementations§
Trait Implementations§
impl Eq for Timestamp
impl StructuralPartialEq for Timestamp
Auto Trait Implementations§
impl Freeze for Timestamp
impl RefUnwindSafe for Timestamp
impl Send for Timestamp
impl Sync for Timestamp
impl Unpin for Timestamp
impl UnsafeUnpin for Timestamp
impl UnwindSafe for Timestamp
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