#[repr(C)]pub struct otMessageInfo {
pub mSockAddr: otIp6Address,
pub mPeerAddr: otIp6Address,
pub mSockPort: u16,
pub mPeerPort: u16,
pub mLinkInfo: *const c_void,
pub mHopLimit: u8,
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>,
pub __bindgen_padding_0: u16,
}Expand description
This structure represents the local and peer IPv6 socket addresses.
Fields§
§mSockAddr: otIp6Address< The local IPv6 address.
mPeerAddr: otIp6Address< The peer IPv6 address.
mSockPort: u16< The local transport-layer port.
mPeerPort: u16< The peer transport-layer port.
mLinkInfo: *const c_void< A pointer to link-specific information.
mHopLimit: u8< The IPv6 Hop Limit value. Only applies if mAllowZeroHopLimit is FALSE.
< If 0, IPv6 Hop Limit is default value OPENTHREAD_CONFIG_IP6_HOP_LIMIT_DEFAULT.
< Otherwise, specifies the IPv6 Hop Limit.
_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>§__bindgen_padding_0: u16Implementations§
Source§impl otMessageInfo
impl otMessageInfo
pub fn mIsHostInterface(&self) -> bool
pub fn set_mIsHostInterface(&mut self, val: bool)
pub fn mAllowZeroHopLimit(&self) -> bool
pub fn set_mAllowZeroHopLimit(&mut self, val: bool)
pub fn new_bitfield_1( mIsHostInterface: bool, mAllowZeroHopLimit: bool, ) -> __BindgenBitfieldUnit<[u8; 1], u8>
Trait Implementations§
Source§impl Clone for otMessageInfo
impl Clone for otMessageInfo
Source§fn clone(&self) -> otMessageInfo
fn clone(&self) -> otMessageInfo
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for otMessageInfo
Auto Trait Implementations§
impl Freeze for otMessageInfo
impl RefUnwindSafe for otMessageInfo
impl !Send for otMessageInfo
impl !Sync for otMessageInfo
impl Unpin for otMessageInfo
impl UnwindSafe for otMessageInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more