Enum p25::data::fields::DataPacketOpcode
[−]
[src]
pub enum DataPacketOpcode { ConfirmedPacket, UnconfirmedPacket, ResponsePacket, TrunkingPacket, }
Data packet type present in every header.
Variants
ConfirmedPacket
Confirmed packet that requires an acknowledgement response from the recipient.
UnconfirmedPacket
Unconfirmed packet that doesn't require an acknowledgement response from the recipient.
ResponsePacket
Response to the sender of a confirmed data packet.
TrunkingPacket
Multiblock trunking data packet.
Methods
impl DataPacketOpcode
[src]
pub fn to_bits(self) -> u8
[src]
Convert packet type to its 5-bit representation.
pub fn from_bits(bits: u8) -> Option<DataPacketOpcode>
[src]
Parse a packet type from the given 5 bits.
Trait Implementations
impl Copy for DataPacketOpcode
[src]
impl Clone for DataPacketOpcode
[src]
fn clone(&self) -> DataPacketOpcode
[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 Eq for DataPacketOpcode
[src]
impl PartialEq for DataPacketOpcode
[src]
fn eq(&self, __arg_0: &DataPacketOpcode) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.