pub struct CallInfo {Show 15 fields
pub id: u32,
pub system: u16,
pub short_name: String,
pub talkgroup: u32,
pub talkgroup_tag: String,
pub freq_hz: u64,
pub tdma_slot: Option<u8>,
pub analog: bool,
pub encrypted: bool,
pub emergency: bool,
pub recording: bool,
pub reason: Option<String>,
pub start_time: f64,
pub units: Vec<u32>,
pub patched_talkgroups: Vec<u32>,
}Expand description
A call as it starts or ends.
Fields§
§id: u32Unique while the recorder runs (Trunk Recorder’s call_num).
system: u16SystemInfo::index: for this run only; short_name is the system’s identity.
short_name: String§talkgroup: u32§talkgroup_tag: StringThe talkgroup’s alpha tag, when known.
freq_hz: u64§tdma_slot: Option<u8>The TDMA slot (0 / 1) of a call on a two-slot channel: P25 Phase 2 or DMR.
analog: bool§encrypted: bool§emergency: bool§recording: boolRecorded (false: only followed, or not recorded — see reason).
reason: Option<String>Why it isn’t recorded: “encrypted”, “unknown_tg”, “no_recorder”, “no_source”, …
start_time: f64Unix seconds.
units: Vec<u32>Radios heard on the call so far.
patched_talkgroups: Vec<u32>Talkgroups patched with this one so far, its own included, ascending; empty when it isn’t patched.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CallInfo
impl<'de> Deserialize<'de> for CallInfo
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 CallInfo
impl RefUnwindSafe for CallInfo
impl Send for CallInfo
impl Sync for CallInfo
impl Unpin for CallInfo
impl UnsafeUnpin for CallInfo
impl UnwindSafe for CallInfo
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