pub struct CallSource {
pub unit: u32,
pub tag: String,
pub time: f64,
pub emergency: bool,
pub encrypted: bool,
pub duplex: bool,
pub packet: bool,
pub priority: u8,
}Expand description
A radio heard on a call, and what its transmission said of itself: P25’s service options (from the grant, link control and Phase 2’s voice channel user messages), or the flags other protocols have.
Fields§
§unit: u32§tag: StringIts name, as the call JSON’s srcList tag will have it (the
system’s units file, or its talker alias). Empty: none known yet.
time: f64Unix seconds it was first heard on the call.
emergency: bool§encrypted: bool§duplex: boolFull duplex (half otherwise).
packet: boolPacket mode (circuit otherwise).
priority: u81 lowest, 4 the default, 7 highest; 0 not given.
Trait Implementations§
Source§impl Clone for CallSource
impl Clone for CallSource
Source§impl Debug for CallSource
impl Debug for CallSource
Source§impl Default for CallSource
impl Default for CallSource
Source§impl<'de> Deserialize<'de> for CallSourcewhere
CallSource: Default,
impl<'de> Deserialize<'de> for CallSourcewhere
CallSource: Default,
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
Source§impl PartialEq for CallSource
impl PartialEq for CallSource
Source§impl Serialize for CallSource
impl Serialize for CallSource
impl StructuralPartialEq for CallSource
Auto Trait Implementations§
impl Freeze for CallSource
impl RefUnwindSafe for CallSource
impl Send for CallSource
impl Sync for CallSource
impl Unpin for CallSource
impl UnsafeUnpin for CallSource
impl UnwindSafe for CallSource
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