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

pub struct Frame<T: AsRef<[u8]>> { /* fields omitted */ }
Expand description

A read/write wrapper around an IEEE 802.15.4 frame buffer.

Implementations

Input a raw octet buffer with Ethernet frame structure.

Shorthand for a combination of new_unchecked and check_len.

Ensure that no accessor method will panic if called. Returns Err(Error::Truncated) if the buffer is too short.

Consumes the frame, returning the underlying buffer.

Return the FrameType field.

Return the destination addressing mode.

Return the frame version.

Return the source addressing mode.

Return the sequence number of the frame.

Return the destination PAN field.

Return the destination address field.

Return the destination PAN field.

Return the source address field.

Return the security level of the auxiliary security header.

Return the key identifier mode used by the auxiliary security header.

Return the frame counter field.

Return the Key Source field.

Return the Key Index field.

Return the Message Integrity Code (MIC).

Return the MAC header.

Return a pointer to the payload.

Set the frame type.

Set the frame version.

Set the frame sequence number.

Set the destination PAN ID.

Set the destination address.

Set the source PAN ID.

Set the source address.

Return a mutable pointer to the payload.

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

Formats the value using the given formatter. Read more

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

Converts the given value to a String. 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.