#[repr(transparent)]pub struct CacheEntryInfo(pub otCacheEntryInfo);Expand description
Represents an EID cache entry.
Tuple Fields§
§0: otCacheEntryInfoImplementations§
Source§impl CacheEntryInfo
impl CacheEntryInfo
Sourcepub fn target(&self) -> &Ip6Address
pub fn target(&self) -> &Ip6Address
Returns the target EID.
Sourcepub fn rloc16(&self) -> ShortAddress
pub fn rloc16(&self) -> ShortAddress
Returns the RLOC16.
Sourcepub fn state(&self) -> CacheEntryState
pub fn state(&self) -> CacheEntryState
Returns the Entry state.
Sourcepub fn ramp_down(&self) -> bool
pub fn ramp_down(&self) -> bool
Indicates whether in ramp-down mode while in OT_CACHE_ENTRY_STATE_RETRY_QUERY.
Sourcepub fn valid_last_trans(&self) -> bool
pub fn valid_last_trans(&self) -> bool
Indicates whether last transaction time and ML-EID are valid.
Sourcepub fn last_trans_time(&self) -> u32
pub fn last_trans_time(&self) -> u32
Returns the last transaction time (applicable in cached state).
Sourcepub fn mesh_local_eid(&self) -> &Ip6Address
pub fn mesh_local_eid(&self) -> &Ip6Address
Returns the Mesh Local EID (applicable if entry in cached state).
Sourcepub fn timeout(&self) -> u16
pub fn timeout(&self) -> u16
Returns the timeout in seconds (applicable if in snooped/query/retry-query states).
Sourcepub fn retry_delay(&self) -> u16
pub fn retry_delay(&self) -> u16
Returns retry delay in seconds (applicable if in query-retry state).
Trait Implementations§
Source§impl Clone for CacheEntryInfo
impl Clone for CacheEntryInfo
Source§fn clone(&self) -> CacheEntryInfo
fn clone(&self) -> CacheEntryInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CacheEntryInfo
impl Debug for CacheEntryInfo
Source§impl Default for CacheEntryInfo
impl Default for CacheEntryInfo
Source§fn default() -> CacheEntryInfo
fn default() -> CacheEntryInfo
Returns the “default value” for a type. Read more
Source§impl<'a> From<&'a CacheEntryInfo> for &'a otCacheEntryInfo
impl<'a> From<&'a CacheEntryInfo> for &'a otCacheEntryInfo
Source§fn from(x: &'a CacheEntryInfo) -> Self
fn from(x: &'a CacheEntryInfo) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a otCacheEntryInfo> for &'a CacheEntryInfo
impl<'a> From<&'a otCacheEntryInfo> for &'a CacheEntryInfo
Source§fn from(x: &'a otCacheEntryInfo) -> Self
fn from(x: &'a otCacheEntryInfo) -> Self
Converts to this type from the input type.
Source§impl From<CacheEntryInfo> for otCacheEntryInfo
impl From<CacheEntryInfo> for otCacheEntryInfo
Source§fn from(x: CacheEntryInfo) -> Self
fn from(x: CacheEntryInfo) -> Self
Converts to this type from the input type.
Source§impl From<otCacheEntryInfo> for CacheEntryInfo
impl From<otCacheEntryInfo> for CacheEntryInfo
Source§fn from(x: otCacheEntryInfo) -> Self
fn from(x: otCacheEntryInfo) -> Self
Converts to this type from the input type.
Source§impl OtCastable for CacheEntryInfo
impl OtCastable for CacheEntryInfo
Source§type OtType = otCacheEntryInfo
type OtType = otCacheEntryInfo
Original OpenThread Type.
Source§fn as_ot_ptr(&self) -> *const Self::OtType
fn as_ot_ptr(&self) -> *const Self::OtType
Returns a pointer to the underlying
Self::OtType instance.Source§fn as_ot_mut_ptr(&mut self) -> *mut Self::OtType
fn as_ot_mut_ptr(&mut self) -> *mut Self::OtType
Returns a mutable pointer to the underlying
Self::OtType instance.Source§unsafe fn ref_from_ot_ptr<'a>(ptr: *const Self::OtType) -> Option<&'a Self>
unsafe fn ref_from_ot_ptr<'a>(ptr: *const Self::OtType) -> Option<&'a Self>
Creates a reference from a pointer to an
Self::OtType. Read moreSource§unsafe fn mut_from_ot_mut_ptr<'a>(
ptr: *mut Self::OtType,
) -> Option<&'a mut Self>
unsafe fn mut_from_ot_mut_ptr<'a>( ptr: *mut Self::OtType, ) -> Option<&'a mut Self>
Creates a mut reference from a mut pointer to an
Self::OtType. Read moreSource§fn as_ot_ref(&self) -> &Self::OtType
fn as_ot_ref(&self) -> &Self::OtType
Returns a reference to the original OpenThread type
Self::OtType.Source§fn as_ot_mut(&mut self) -> &mut Self::OtType
fn as_ot_mut(&mut self) -> &mut Self::OtType
Returns a mutable reference to the original OpenThread type
Self::OtType.Source§fn ref_from_ot_ref(x: &Self::OtType) -> &Self
fn ref_from_ot_ref(x: &Self::OtType) -> &Self
Casts a reference to the original OpenThread type to a reference to
Self.Source§impl Transparent for CacheEntryInfo
impl Transparent for CacheEntryInfo
impl Copy for CacheEntryInfo
Auto Trait Implementations§
impl Freeze for CacheEntryInfo
impl RefUnwindSafe for CacheEntryInfo
impl Send for CacheEntryInfo
impl Sync for CacheEntryInfo
impl Unpin for CacheEntryInfo
impl UnsafeUnpin for CacheEntryInfo
impl UnwindSafe for CacheEntryInfo
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,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]