pub struct AddressingFieldsRepr {
pub dst_pan_id: Option<u16>,
pub dst_address: Option<Address>,
pub src_pan_id: Option<u16>,
pub src_address: Option<Address>,
}
Expand description
A high-level representation of the IEEE 802.15.4 Addressing Fields.
Fields§
§dst_pan_id: Option<u16>
Destination PAN identifier.
dst_address: Option<Address>
Destination address.
src_pan_id: Option<u16>
Source PAN identifier.
src_address: Option<Address>
Source address.
Implementations§
Source§impl AddressingFieldsRepr
impl AddressingFieldsRepr
Sourcepub fn parse(addressing: AddressingFields<&[u8], &[u8]>) -> Self
pub fn parse(addressing: AddressingFields<&[u8], &[u8]>) -> Self
Parse the Addressing Fields from the given buffer.
Sourcepub fn validate(&self, fc: &FrameControlRepr) -> Result<()>
pub fn validate(&self, fc: &FrameControlRepr) -> Result<()>
Validate the Addressing Fields.
Sourcepub fn buffer_len(&self, fc: &FrameControlRepr) -> usize
pub fn buffer_len(&self, fc: &FrameControlRepr) -> usize
Return the length of the Addressing Fields in octets.
Sourcepub fn emit(&self, _buffer: &AddressingFields<&mut [u8], &[u8]>)
pub fn emit(&self, _buffer: &AddressingFields<&mut [u8], &[u8]>)
Emit the Addressing Fields into the given buffer.
Trait Implementations§
Source§impl Debug for AddressingFieldsRepr
impl Debug for AddressingFieldsRepr
Source§impl Default for AddressingFieldsRepr
impl Default for AddressingFieldsRepr
Source§fn default() -> AddressingFieldsRepr
fn default() -> AddressingFieldsRepr
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AddressingFieldsRepr
impl RefUnwindSafe for AddressingFieldsRepr
impl Send for AddressingFieldsRepr
impl Sync for AddressingFieldsRepr
impl Unpin for AddressingFieldsRepr
impl UnwindSafe for AddressingFieldsRepr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more