pub enum CliEvent {
Show 20 variants
Received {
from: PublicKey,
hops: u8,
rssi: i16,
snr: i16,
prefix: Vec<u8, EVENT_PAYLOAD_MAX>,
},
AckReceived {
peer: PublicKey,
},
AckTimeout {
peer: PublicKey,
},
NodeDiscovered {
from: PublicKey,
name: Option<String<32>>,
},
Beacon {
hint: NodeHint,
from: Option<PublicKey>,
},
PfsEstablished {
peer: PublicKey,
},
PfsEnded {
peer: PublicKey,
},
PfsFailed {
peer: PublicKey,
reason: PfsFailure,
},
Pong {
peer: PublicKey,
rtt_ms: u64,
},
PingTimeout {
peer: PublicKey,
},
UnknownMacCmdIn {
peer: PublicKey,
cmd_id: u8,
},
RawTx {
bytes: Vec<u8, EVENT_RAW_MAX>,
},
RawRx {
bytes: Vec<u8, EVENT_RAW_MAX>,
},
OutputLine {
line: String<EVENT_LINE_MAX>,
},
SendText {
peer: PublicKey,
body: String<EVENT_LINE_MAX>,
},
StartPfs {
peer: PublicKey,
minutes: u16,
},
EndPfs {
peer: PublicKey,
},
ChannelSend {
channel_slot: u8,
body: String<EVENT_LINE_MAX>,
},
SendBeacon,
SendRaw {
peer: PublicKey,
bytes: Vec<u8, EVENT_PAYLOAD_MAX>,
},
}Variants§
Received
AckReceived
Fields
§
peer: PublicKeyAckTimeout
Fields
§
peer: PublicKeyNodeDiscovered
Beacon
Fields
§
hint: NodeHint3-byte source hint from the packet header — always present.
PfsEstablished
Fields
§
peer: PublicKeyPfsEnded
Fields
§
peer: PublicKeyPfsFailed
Pong
PingTimeout
Fields
§
peer: PublicKeyUnknownMacCmdIn
RawTx
RawRx
OutputLine
SendText
StartPfs
EndPfs
Fields
§
peer: PublicKey