#[repr(C)]pub struct otMessageInfo {
pub mSockAddr: otIp6Address,
pub mPeerAddr: otIp6Address,
pub mSockPort: u16,
pub mPeerPort: u16,
pub mHopLimit: u8,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
}
Expand description
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.
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_align_1: [u8; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>
Implementations§
Source§impl otMessageInfo
impl otMessageInfo
pub fn mEcn(&self) -> u8
pub fn set_mEcn(&mut self, val: u8)
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 mMulticastLoop(&self) -> bool
pub fn set_mMulticastLoop(&mut self, val: bool)
pub fn new_bitfield_1( mEcn: u8, mIsHostInterface: bool, mAllowZeroHopLimit: bool, mMulticastLoop: bool, ) -> __BindgenBitfieldUnit<[u8; 1]>
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 moreSource§impl Default for otMessageInfo
impl Default for otMessageInfo
impl 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)