Struct p25::voice::control::LinkControlFields
[−]
[src]
pub struct LinkControlFields(_);
Base link control decoder, common to all packets.
Methods
impl LinkControlFields
[src]
pub fn new(buf: Buf) -> Self
[src]
Interpret the given bytes as a link control packet.
pub fn protected(&self) -> bool
[src]
Whether the packet is encrypted.
pub fn opcode(&self) -> Option<LinkControlOpcode>
[src]
Type of data contained in the payload.
pub fn payload(&self) -> &[u8]
[src]
Bytes that make up the payload.
Trait Implementations
impl Copy for LinkControlFields
[src]
impl Clone for LinkControlFields
[src]
fn clone(&self) -> LinkControlFields
[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