pub struct UnitEvent {
pub system: u16,
pub short_name: String,
pub site: String,
pub kind: String,
pub unit: u32,
pub tag: String,
pub talkgroup: Option<u32>,
pub alpha_tag: String,
pub emergency: bool,
pub time: f64,
}Expand description
Something a radio did on the control channel.
Fields§
§system: u16SystemInfo::index: for this run only; short_name is the system’s identity.
short_name: String§site: StringThe site whose control channel told it (its name).
kind: String“registration” | “deregistration” | “affiliation” | “acknowledge” | “location” | “data_grant” | “answer_request” | “call_alert” | “emergency_alarm”
unit: u32Radio ID.
tag: StringIts name, as a call’s would be (the units file, its talker alias). Empty: none known.
talkgroup: Option<u32>The talkgroup involved (affiliation, location, answer request, call alert, emergency alarm).
alpha_tag: StringThe talkgroup’s name, from the system’s talkgroup file. Empty: none.
emergency: boolThe message said it is an emergency (an emergency alarm, a data grant’s options).
time: f64Unix seconds.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UnitEvent
impl<'de> Deserialize<'de> for UnitEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for UnitEvent
impl RefUnwindSafe for UnitEvent
impl Send for UnitEvent
impl Sync for UnitEvent
impl Unpin for UnitEvent
impl UnsafeUnpin for UnitEvent
impl UnwindSafe for UnitEvent
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