Struct smoltcp::wire::ieee802154::Frame

source ·
pub struct Frame<T: AsRef<[u8]>> { /* private fields */ }
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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.