Enum p25::message::nid::DataUnit
[−]
[src]
pub enum DataUnit { VoiceHeader, VoiceSimpleTerminator, VoiceLCTerminator, VoiceLCFrameGroup, VoiceCCFrameGroup, DataPacket, TrunkingSignaling, }
Data unit of associated packet.
Variants
VoiceHeader
Voice header packet.
VoiceSimpleTerminator
Simple terminator packet.
VoiceLCTerminator
Terminator packet with link control word.
VoiceLCFrameGroup
Link control voice frame group.
VoiceCCFrameGroup
Crypto control voice frame group.
DataPacket
Confirmed/Unconfirmed data packet
TrunkingSignaling
Trunking signalling packet.
Methods
impl DataUnit
[src]
pub fn from_bits(bits: u8) -> Option<DataUnit>
[src]
Parse 4 bits into a data unit type.
pub fn to_bits(self) -> u8
[src]
Convert data unit to 4-bit word.
Trait Implementations
impl Copy for DataUnit
[src]
impl Clone for DataUnit
[src]
fn clone(&self) -> DataUnit
[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 DataUnit
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more