pub enum UrCallAction {
Cq,
Echo,
Unlink,
Info,
Link {
reflector: String,
module: char,
},
Callsign(String),
}Expand description
Parsed action from a D-STAR URCALL field (8 characters).
The URCALL field in a D-STAR header can contain either a destination callsign for routing, or a special command for the gateway. This enum represents all possible interpretations.
§Special URCALL patterns (per DPlus/DCS/DExtra conventions)
"CQCQCQ "— Broadcast CQ (no routing)" E"— Echo test (7 spaces +E)" U"— Unlink from reflector (7 spaces +U)" I"— Request info (7 spaces +I)"REF001 A"— Link to reflector REF001, module A (up to 7 chars reflector name + module letter)
Variants§
Cq
Broadcast CQ — no special routing.
Echo
Echo test — record and play back the transmission.
Unlink
Unlink — disconnect from the current reflector.
Info
Request information from the gateway.
Link
Link to a reflector and module.
Fields
Callsign(String)
Route to a specific callsign (not a special command).
Implementations§
Trait Implementations§
Source§impl Clone for UrCallAction
impl Clone for UrCallAction
Source§fn clone(&self) -> UrCallAction
fn clone(&self) -> UrCallAction
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 UrCallAction
impl Debug for UrCallAction
Source§impl PartialEq for UrCallAction
impl PartialEq for UrCallAction
impl Eq for UrCallAction
impl StructuralPartialEq for UrCallAction
Auto Trait Implementations§
impl Freeze for UrCallAction
impl RefUnwindSafe for UrCallAction
impl Send for UrCallAction
impl Sync for UrCallAction
impl Unpin for UrCallAction
impl UnwindSafe for UrCallAction
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