pub struct EidCacheEntry {
pub target: Option<Ipv6Address>,
pub rloc16: Option<u16>,
pub state: Option<CacheEntryState>,
pub can_evict: Option<bool>,
pub ramp_down: Option<bool>,
pub valid_last_trans: Option<bool>,
pub last_trans_time: Option<i64>,
pub mesh_local_eid: Option<Ipv6Address>,
pub timeout: Option<i64>,
pub retry_delay: Option<i64>,
/* private fields */
}Expand description
Represents EID-to-RLOC cache entry info.
Fields§
§target: Option<Ipv6Address>Target EID.
Required.
rloc16: Option<u16>Rloc16.
Required.
state: Option<CacheEntryState>Entry state.
Required.
can_evict: Option<bool>Indicates whether the entry can be evicted.
Required.
ramp_down: Option<bool>Indicates whether in ramp-down mode while in OT_CACHE_ENTRY_STATE_RETRY_QUERY.
Required.
valid_last_trans: Option<bool>Indicates whether last transaction time and ML-EID are valid.
Required.
last_trans_time: Option<i64>Last transaction time (applicable in cached state).
Required.
mesh_local_eid: Option<Ipv6Address>Mesh Local EID (applicable if entry in cached state).
Required.
timeout: Option<i64>Timeout (applicable if in snooped/query/retry-query states).
Required.
retry_delay: Option<i64>Retry delay (applicable if in query-retry state).
Required.
Trait Implementations§
Source§impl Clone for EidCacheEntry
impl Clone for EidCacheEntry
Source§fn clone(&self) -> EidCacheEntry
fn clone(&self) -> EidCacheEntry
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 EidCacheEntry
impl Debug for EidCacheEntry
Source§impl<D: ResourceDialect> Decode<EidCacheEntry, D> for EidCacheEntry
impl<D: ResourceDialect> Decode<EidCacheEntry, D> for EidCacheEntry
Source§impl Default for EidCacheEntry
impl Default for EidCacheEntry
Source§fn default() -> EidCacheEntry
fn default() -> EidCacheEntry
Returns the “default value” for a type. Read more
Source§impl<D: ResourceDialect> Encode<EidCacheEntry, D> for &EidCacheEntry
impl<D: ResourceDialect> Encode<EidCacheEntry, D> for &EidCacheEntry
Source§impl PartialEq for EidCacheEntry
impl PartialEq for EidCacheEntry
Source§fn eq(&self, other: &EidCacheEntry) -> bool
fn eq(&self, other: &EidCacheEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TypeMarker for EidCacheEntry
impl TypeMarker for EidCacheEntry
Source§type Owned = EidCacheEntry
type Owned = EidCacheEntry
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.Source§impl ValueTypeMarker for EidCacheEntry
impl ValueTypeMarker for EidCacheEntry
Source§type Borrowed<'a> = &'a EidCacheEntry
type Borrowed<'a> = &'a EidCacheEntry
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreimpl Persistable for EidCacheEntry
impl StructuralPartialEq for EidCacheEntry
Auto Trait Implementations§
impl Freeze for EidCacheEntry
impl RefUnwindSafe for EidCacheEntry
impl Send for EidCacheEntry
impl Sync for EidCacheEntry
impl Unpin for EidCacheEntry
impl UnsafeUnpin for EidCacheEntry
impl UnwindSafe for EidCacheEntry
Blanket Implementations§
Source§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
Source§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
Source§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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