Message

Enum Message 

Source
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

Fields

§page: u16
§total: u16
§

McpReadComplete(Vec<u8>)

§

McpWriteComplete

§

McpByteWritten

A single MCP byte was written successfully — update the in-memory cache without requiring a full re-read.

Fields

§offset: u16
§value: u8
§

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.

Fields

§addressee: String
§text: String
§message_id: String
§

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§

Source§

impl Debug for Message

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more