#[non_exhaustive]pub enum SlowDataBlockKind {
Gps,
Text,
HeaderRetx,
FastData1,
FastData2,
Squelch,
Unknown {
high_nibble: u8,
},
}Expand description
Slow data block type, recovered from the high nibble of byte 0 after descrambling.
Reference: ircDDBGateway/Common/DStarDefines.h:85-92
(SLOW_DATA_TYPE_GPS = 0x30, SLOW_DATA_TYPE_TEXT = 0x40, etc.).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Gps
0x3X — GPS NMEA passthrough.
Text
0x4X — 20-character status text.
HeaderRetx
0x5X — header retransmission.
FastData1
0x8X — fast data variant 1.
FastData2
0x9X — fast data variant 2.
Squelch
0xCX — squelch / control.
Unknown
Any other high nibble.
Implementations§
Source§impl SlowDataBlockKind
impl SlowDataBlockKind
Sourcepub const fn from_type_byte(byte: u8) -> Self
pub const fn from_type_byte(byte: u8) -> Self
Decode the high nibble of the type byte into a kind.
Trait Implementations§
Source§impl Clone for SlowDataBlockKind
impl Clone for SlowDataBlockKind
Source§fn clone(&self) -> SlowDataBlockKind
fn clone(&self) -> SlowDataBlockKind
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 SlowDataBlockKind
impl Debug for SlowDataBlockKind
Source§impl PartialEq for SlowDataBlockKind
impl PartialEq for SlowDataBlockKind
impl Copy for SlowDataBlockKind
impl Eq for SlowDataBlockKind
impl StructuralPartialEq for SlowDataBlockKind
Auto Trait Implementations§
impl Freeze for SlowDataBlockKind
impl RefUnwindSafe for SlowDataBlockKind
impl Send for SlowDataBlockKind
impl Sync for SlowDataBlockKind
impl Unpin for SlowDataBlockKind
impl UnwindSafe for SlowDataBlockKind
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