Struct p25::message::nid::NetworkId
[−]
[src]
pub struct NetworkId { pub access_code: NetworkAccessCode, pub data_unit: DataUnit, }
NID word associated with each P25 packet.
Fields
access_code: NetworkAccessCode
NAC field.
data_unit: DataUnit
DUID field.
Methods
impl NetworkId
[src]
pub fn new(access_code: NetworkAccessCode, data_unit: DataUnit) -> NetworkId
[src]
Create an NID word from the given NAC and data unit.
pub fn from_bits(bits: u16) -> Option<NetworkId>
[src]
Parse NID from the given 16-bit word.
pub fn to_bits(&self) -> u16
[src]
Convert NID to 16-bit representation.
pub fn encode(&self) -> [u8; 8]
[src]
Encode NID into a byte sequence.
Trait Implementations
impl Copy for NetworkId
[src]
impl Clone for NetworkId
[src]
fn clone(&self) -> NetworkId
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more