Struct smoltcp::wire::ieee802154::Repr[][src]

pub struct Repr {
    pub frame_type: FrameType,
    pub security_enabled: bool,
    pub frame_pending: bool,
    pub ack_request: bool,
    pub sequence_number: Option<u8>,
    pub pan_id_compression: bool,
    pub frame_version: FrameVersion,
    pub dst_pan_id: Option<Pan>,
    pub dst_addr: Option<Address>,
    pub src_pan_id: Option<Pan>,
    pub src_addr: Option<Address>,
}
Expand description

A high-level representation of an IEEE802.15.4 frame.

Fields

frame_type: FrameTypesecurity_enabled: boolframe_pending: boolack_request: boolsequence_number: Option<u8>pan_id_compression: boolframe_version: FrameVersiondst_pan_id: Option<Pan>dst_addr: Option<Address>src_pan_id: Option<Pan>src_addr: Option<Address>

Implementations

Parse an IEEE 802.15.4 frame and return a high-level representation.

Return the length of a buffer required to hold a packet with the payload of a given length.

Emit a high-level representation into an IEEE802.15.4 frame.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.