Enum p25::message::nid::DataUnit
[−]
[src]
pub enum DataUnit {
VoiceHeader,
VoiceSimpleTerminator,
VoiceLCTerminator,
VoiceLCFrameGroup,
VoiceCCFrameGroup,
DataPacket,
TrunkingSignaling,
}Data unit of associated packet.
Variants
VoiceHeaderVoice header packet.
VoiceSimpleTerminatorSimple terminator packet.
VoiceLCTerminatorTerminator packet with link control word.
VoiceLCFrameGroupLink control voice frame group.
VoiceCCFrameGroupCrypto control voice frame group.
DataPacketConfirmed/Unconfirmed data packet
TrunkingSignalingTrunking 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