#[non_exhaustive]pub enum SlowDataBlock {
Gps(String),
Text(SlowDataText),
HeaderRetx(DStarHeader),
FastData(Vec<u8>),
Squelch {
code: u8,
},
Unknown {
type_byte: u8,
payload: Vec<u8>,
},
}Expand description
A complete slow data block extracted from a stream of voice frames.
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(String)
GPS NMEA sentence.
Text(SlowDataText)
20-character text frame.
HeaderRetx(DStarHeader)
Retransmitted header.
FastData(Vec<u8>)
Fast data block 1 — opaque payload.
Squelch
Squelch / control marker.
Unknown
Unknown block type — payload preserved verbatim.
Trait Implementations§
Source§impl Clone for SlowDataBlock
impl Clone for SlowDataBlock
Source§fn clone(&self) -> SlowDataBlock
fn clone(&self) -> SlowDataBlock
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 SlowDataBlock
impl Debug for SlowDataBlock
Source§impl PartialEq for SlowDataBlock
impl PartialEq for SlowDataBlock
impl Eq for SlowDataBlock
impl StructuralPartialEq for SlowDataBlock
Auto Trait Implementations§
impl Freeze for SlowDataBlock
impl RefUnwindSafe for SlowDataBlock
impl Send for SlowDataBlock
impl Sync for SlowDataBlock
impl Unpin for SlowDataBlock
impl UnwindSafe for SlowDataBlock
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