pub enum AprsIsEvent {
Packet(String),
Comment(String),
LoggedIn {
server: Option<String>,
},
LoginRejected {
reason: String,
},
Disconnected,
}Expand description
An event from the APRS-IS server.
Variants§
Packet(String)
An APRS packet line was received (not a comment).
The line is stripped of trailing \r\n. Parse with the standard
APRS parsers in the aprs crate after splitting
source/dest/path/data.
Comment(String)
A server comment line was received (starts with #).
Comments carry server info, login responses, and keepalives.
The line is stripped of trailing \r\n.
LoggedIn
The server accepted the login (# logresp ... verified, server ...).
Emitted the first time a logresp line confirming verified is
seen. server is the upstream server’s hostname extracted from
the comment, if present.
LoginRejected
The server rejected the login (# logresp ... unverified).
Emitted when the passcode does not validate for the given
callsign. reason carries the full comment text for diagnosis.
Disconnected
The TCP connection was closed (EOF from server).
Trait Implementations§
Source§impl Clone for AprsIsEvent
impl Clone for AprsIsEvent
Source§fn clone(&self) -> AprsIsEvent
fn clone(&self) -> AprsIsEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more