Struct openthread_sys::otMessageInfo
source · #[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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)