Struct openthread_sys::otThreadLinkInfo
source · #[repr(C)]pub struct otThreadLinkInfo {
pub mPanId: u16,
pub mChannel: u8,
pub mRss: i8,
pub mLqi: u8,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
pub mTimeSyncSeq: u8,
pub mNetworkTimeOffset: i64,
pub mRadioType: u8,
}
Expand description
Represents link-specific information for messages received from the Thread radio.
Fields§
§mPanId: u16
< Source PAN ID
mChannel: u8
< 802.15.4 Channel
mRss: i8
< Received Signal Strength in dBm (averaged over fragments)
mLqi: u8
< Average Link Quality Indicator (averaged over fragments)
_bitfield_align_1: [u8; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>
§mTimeSyncSeq: u8
< The time sync sequence.
mNetworkTimeOffset: i64
< The time offset to the Thread network time, in microseconds.
mRadioType: u8
< Radio link type.
Implementations§
source§impl otThreadLinkInfo
impl otThreadLinkInfo
pub fn mLinkSecurity(&self) -> bool
pub fn set_mLinkSecurity(&mut self, val: bool)
pub fn mIsDstPanIdBroadcast(&self) -> bool
pub fn set_mIsDstPanIdBroadcast(&mut self, val: bool)
pub fn new_bitfield_1( mLinkSecurity: bool, mIsDstPanIdBroadcast: bool, ) -> __BindgenBitfieldUnit<[u8; 1]>
Trait Implementations§
source§impl Clone for otThreadLinkInfo
impl Clone for otThreadLinkInfo
source§fn clone(&self) -> otThreadLinkInfo
fn clone(&self) -> otThreadLinkInfo
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 Debug for otThreadLinkInfo
impl Debug for otThreadLinkInfo
source§impl Default for otThreadLinkInfo
impl Default for otThreadLinkInfo
source§fn default() -> otThreadLinkInfo
fn default() -> otThreadLinkInfo
Returns the “default value” for a type. Read more
impl Copy for otThreadLinkInfo
Auto Trait Implementations§
impl Freeze for otThreadLinkInfo
impl RefUnwindSafe for otThreadLinkInfo
impl Send for otThreadLinkInfo
impl Sync for otThreadLinkInfo
impl Unpin for otThreadLinkInfo
impl UnwindSafe for otThreadLinkInfo
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
)