pub struct UnitEvent {
pub system: u16,
pub short_name: String,
pub kind: String,
pub unit: u32,
pub talkgroup: Option<u32>,
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§kind: String“registration” | “deregistration” | “affiliation” | “acknowledge” | “location” | “data_grant” | “answer_request” | “call_alert”
unit: u32Radio ID.
talkgroup: Option<u32>The talkgroup involved (affiliation, location, answer request, call alert).
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