pub enum WsprMessage {
Type1 {
callsign: String,
grid: String,
power_dbm: i32,
},
Type2 {
callsign: String,
power_dbm: i32,
},
Type3 {
callsign_hash: u32,
grid6: String,
power_dbm: i32,
},
}Expand description
Decoded WSPR message payload.
Variants§
Type1
Standard Type-1 message: 6-char callsign, 4-char grid, transmit power.
Type2
Type-2 prefix/suffix callsign (e.g. PJ4/K1ABC 37).
Fields
Type3
Type-3 hashed callsign + 6-char grid. The hash is exposed raw so callers with a compatible WSPR hash table can resolve it.
Trait Implementations§
Source§impl Clone for WsprMessage
impl Clone for WsprMessage
Source§fn clone(&self) -> WsprMessage
fn clone(&self) -> WsprMessage
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 WsprMessage
impl Debug for WsprMessage
Source§impl Display for WsprMessage
impl Display for WsprMessage
Source§impl PartialEq for WsprMessage
impl PartialEq for WsprMessage
impl Eq for WsprMessage
impl StructuralPartialEq for WsprMessage
Auto Trait Implementations§
impl Freeze for WsprMessage
impl RefUnwindSafe for WsprMessage
impl Send for WsprMessage
impl Sync for WsprMessage
impl Unpin for WsprMessage
impl UnsafeUnpin for WsprMessage
impl UnwindSafe for WsprMessage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more