Struct capsules::net::ieee802154::Header [] [src]

pub struct Header<'a> {
    pub frame_type: FrameType,
    pub frame_pending: bool,
    pub ack_requested: bool,
    pub version: FrameVersion,
    pub seq: Option<u8>,
    pub dst_pan: Option<PanID>,
    pub dst_addr: Option<MacAddress>,
    pub src_pan: Option<PanID>,
    pub src_addr: Option<MacAddress>,
    pub security: Option<Security>,
    pub header_ies: [HeaderIE<'a>; 5],
    pub header_ies_len: usize,
    pub payload_ies: [PayloadIE<'a>; 5],
    pub payload_ies_len: usize,
}

Fields

Methods

impl<'a> Header<'a>
[src]

[src]

[src]

[src]

Decodes an IEEE 802.15.4 MAC header from a byte slice, where the MAC header may contain slices into the given byte slice to represent undissected information elements (IE). unsecured controls whether or not payload IEs (which are encrypted if the frame has not yet been unsecured) can be parsed.

[src]

Trait Implementations

impl<'a> Copy for Header<'a>
[src]

impl<'a> Clone for Header<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Eq for Header<'a>
[src]

[src]

impl<'a> PartialEq for Header<'a>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<'a> Debug for Header<'a>
[src]

[src]

Formats the value using the given formatter. Read more