Enum p25::message::nid::NetworkAccessCode
[−]
[src]
pub enum NetworkAccessCode { Default, ReceiveAny, RepeatAny, Other(u16), }
"Digital squelch" NAC field of the NID.
Variants
Default
Default P25 NAC.
ReceiveAny
Allows receiver to unsquelch on any NAC (shouldn't be transmitted.)
RepeatAny
Allows repeater to unsquelch/retransmit any NAC (shouldn't be transmitted.)
Other(u16)
Custom NAC.
Methods
impl NetworkAccessCode
[src]
pub fn from_bits(bits: u16) -> NetworkAccessCode
[src]
Parse 12 bits into a NAC.
pub fn to_bits(self) -> u16
[src]
Convert NAC to a 12-bit word.
Trait Implementations
impl Copy for NetworkAccessCode
[src]
impl Clone for NetworkAccessCode
[src]
fn clone(&self) -> NetworkAccessCode
[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
impl Debug for NetworkAccessCode
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Eq for NetworkAccessCode
[src]
impl PartialEq for NetworkAccessCode
[src]
fn eq(&self, __arg_0: &NetworkAccessCode) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &NetworkAccessCode) -> bool
[src]
This method tests for !=
.