pub(crate) enum Message {
Show 20 variants
Key(KeyEvent),
RadioUpdate(RadioState),
RadioError(String),
Disconnected,
Reconnected,
McpProgress {
page: u16,
total: u16,
},
McpReadComplete(Vec<u8>),
McpWriteComplete,
McpByteWritten {
offset: u16,
value: u8,
},
McpError(String),
AprsStarted,
AprsStopped,
AprsEvent(AprsEvent),
AprsMessageSent {
addressee: String,
text: String,
message_id: String,
},
AprsError(String),
DStarStarted,
DStarStopped,
DStarEvent(DStarEvent),
DStarError(String),
Quit,
}Expand description
All events that can flow into the update loop.
Variants§
Key(KeyEvent)
RadioUpdate(RadioState)
RadioError(String)
Disconnected
Reconnected
McpProgress
McpReadComplete(Vec<u8>)
McpWriteComplete
McpByteWritten
A single MCP byte was written successfully — update the in-memory cache without requiring a full re-read.
McpError(String)
AprsStarted
The radio task has entered APRS mode successfully.
AprsStopped
The radio task has exited APRS mode.
AprsEvent(AprsEvent)
An APRS event was received from the radio task.
AprsMessageSent
An APRS message was sent and assigned a message ID for tracking.
AprsError(String)
Error from the APRS subsystem.
DStarStarted
The radio task has entered D-STAR gateway mode successfully.
DStarStopped
The radio task has exited D-STAR gateway mode.
DStarEvent(DStarEvent)
A D-STAR event was received from the radio task (gateway mode).
DStarError(String)
Error from the D-STAR subsystem.
Quit
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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