#[repr(C)]pub struct otCacheEntryInfo {
pub mTarget: otIp6Address,
pub mRloc16: otShortAddress,
pub mState: otCacheEntryState,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
pub mLastTransTime: u32,
pub mMeshLocalEid: otIp6Address,
pub mTimeout: u16,
pub mRetryDelay: u16,
}
Expand description
Represents an EID cache entry.
Fields§
§mTarget: otIp6Address
< Target EID
mRloc16: otShortAddress
< RLOC16
mState: otCacheEntryState
< Entry state
_bitfield_align_1: [u8; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>
§mLastTransTime: u32
< Last transaction time (applicable in cached state).
mMeshLocalEid: otIp6Address
< Mesh Local EID (applicable if entry in cached state).
mTimeout: u16
< Timeout in seconds (applicable if in snooped/query/retry-query states).
mRetryDelay: u16
< Retry delay in seconds (applicable if in query-retry state).
Implementations§
Source§impl otCacheEntryInfo
impl otCacheEntryInfo
pub fn mCanEvict(&self) -> bool
pub fn set_mCanEvict(&mut self, val: bool)
pub fn mRampDown(&self) -> bool
pub fn set_mRampDown(&mut self, val: bool)
pub fn mValidLastTrans(&self) -> bool
pub fn set_mValidLastTrans(&mut self, val: bool)
pub fn new_bitfield_1( mCanEvict: bool, mRampDown: bool, mValidLastTrans: bool, ) -> __BindgenBitfieldUnit<[u8; 1]>
Trait Implementations§
Source§impl Clone for otCacheEntryInfo
impl Clone for otCacheEntryInfo
Source§fn clone(&self) -> otCacheEntryInfo
fn clone(&self) -> otCacheEntryInfo
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 otCacheEntryInfo
impl Default for otCacheEntryInfo
impl Copy for otCacheEntryInfo
Auto Trait Implementations§
impl Freeze for otCacheEntryInfo
impl RefUnwindSafe for otCacheEntryInfo
impl Send for otCacheEntryInfo
impl Sync for otCacheEntryInfo
impl Unpin for otCacheEntryInfo
impl UnwindSafe for otCacheEntryInfo
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
)