Skip to main content

otHistoryTrackerMessageInfo

Struct otHistoryTrackerMessageInfo 

Source
#[repr(C)]
pub struct otHistoryTrackerMessageInfo { pub mPayloadLength: u16, pub mNeighborRloc16: u16, pub mSource: otSockAddr, pub mDestination: otSockAddr, pub mChecksum: u16, pub mIpProto: u8, pub mIcmp6Type: u8, pub mAveRxRss: i8, pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>, }
Expand description

Represents a RX/TX IPv6 message info.

Some of the fields in this struct are applicable to a RX message or a TX message only, e.g., mAveRxRss is the average RSS of all fragment frames that form a received message and is only applicable for a RX message.

Fields§

§mPayloadLength: u16

< IPv6 payload length (exclude IP6 header itself).

§mNeighborRloc16: u16

< RLOC16 of neighbor which sent/received the msg (0xfffe if no RLOC16).

§mSource: otSockAddr

< Source IPv6 address and port (if UDP/TCP)

§mDestination: otSockAddr

< Destination IPv6 address and port (if UDP/TCP).

§mChecksum: u16

< Message checksum (valid only for UDP/TCP/ICMP6).

§mIpProto: u8

< IP Protocol number (OT_IP6_PROTO_* enumeration).

§mIcmp6Type: u8

< ICMP6 type if msg is ICMP6, zero otherwise (OT_ICMP6_TYPE_* enumeration).

§mAveRxRss: i8

< RSS of received message or OT_RADIO_INVALID_RSSI if not known.

§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>

Implementations§

Source§

impl otHistoryTrackerMessageInfo

Source

pub fn mLinkSecurity(&self) -> bool

Source

pub fn set_mLinkSecurity(&mut self, val: bool)

Source

pub unsafe fn mLinkSecurity_raw(this: *const Self) -> bool

Source

pub unsafe fn set_mLinkSecurity_raw(this: *mut Self, val: bool)

Source

pub fn mTxSuccess(&self) -> bool

Source

pub fn set_mTxSuccess(&mut self, val: bool)

Source

pub unsafe fn mTxSuccess_raw(this: *const Self) -> bool

Source

pub unsafe fn set_mTxSuccess_raw(this: *mut Self, val: bool)

Source

pub fn mPriority(&self) -> u8

Source

pub fn set_mPriority(&mut self, val: u8)

Source

pub unsafe fn mPriority_raw(this: *const Self) -> u8

Source

pub unsafe fn set_mPriority_raw(this: *mut Self, val: u8)

Source

pub fn mRadioIeee802154(&self) -> bool

Source

pub fn set_mRadioIeee802154(&mut self, val: bool)

Source

pub unsafe fn mRadioIeee802154_raw(this: *const Self) -> bool

Source

pub unsafe fn set_mRadioIeee802154_raw(this: *mut Self, val: bool)

Source

pub fn mRadioTrelUdp6(&self) -> bool

Source

pub fn set_mRadioTrelUdp6(&mut self, val: bool)

Source

pub unsafe fn mRadioTrelUdp6_raw(this: *const Self) -> bool

Source

pub unsafe fn set_mRadioTrelUdp6_raw(this: *mut Self, val: bool)

Source

pub fn new_bitfield_1( mLinkSecurity: bool, mTxSuccess: bool, mPriority: u8, mRadioIeee802154: bool, mRadioTrelUdp6: bool, ) -> __BindgenBitfieldUnit<[u8; 1]>

Trait Implementations§

Source§

impl Clone for otHistoryTrackerMessageInfo

Source§

fn clone(&self) -> otHistoryTrackerMessageInfo

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for otHistoryTrackerMessageInfo

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for otHistoryTrackerMessageInfo

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.