#[repr(u32)]pub enum EntryState {
Incomplete = 1,
Reachable = 2,
Stale = 3,
Delay = 4,
Probe = 5,
Static = 6,
Unreachable = 7,
}
Variants§
Incomplete = 1
Reachability is in the process of being confirmed for a newly created, non-static entry.
Reachable = 2
Positive reachability has been confirmed; the path to the neighbor is functioning properly.
Stale = 3
Reachability is considered unknown.
Occurs in one of two ways:
- Too much time has elapsed since the last positive reachability confirmation was received.
- Received a reachability confirmation from a neighbor with a different MAC address than the one cached.
Delay = 4
A packet was recently sent while reachability was considered unknown.
This state is an optimization that gives non-Neighbor-Discovery related protocols time to confirm reachability after the last confirmation of reachability has expired due to lack of recent traffic.
Probe = 5
A reachability confirmation is actively sought by periodically retransmitting reachability probes until a reachability confirmation is received, or until the maximum number of probes has been sent.
Static = 6
Static entries are explicitly added with [Controller.AddEntry
].
They do not expire and are not deleted until explicitly removed with
[Controller.RemoveEntry
].
Unreachable = 7
Negative reachability has been confirmed; the path to the neighbor may not be functioning properly. A reachability confirmation was not received after transmitting the maximum number of reachability probes.
Implementations§
Source§impl EntryState
impl EntryState
pub fn from_primitive(prim: u32) -> Option<Self>
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
is_unknown
Trait Implementations§
Source§impl Clone for EntryState
impl Clone for EntryState
Source§fn clone(&self) -> EntryState
fn clone(&self) -> EntryState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for EntryState
impl Debug for EntryState
Source§impl<D: ResourceDialect> Decode<EntryState, D> for EntryState
impl<D: ResourceDialect> Decode<EntryState, D> for EntryState
Source§impl<D: ResourceDialect> Encode<EntryState, D> for EntryState
impl<D: ResourceDialect> Encode<EntryState, D> for EntryState
Source§impl Hash for EntryState
impl Hash for EntryState
Source§impl Ord for EntryState
impl Ord for EntryState
Source§fn cmp(&self, other: &EntryState) -> Ordering
fn cmp(&self, other: &EntryState) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for EntryState
impl PartialEq for EntryState
Source§impl PartialOrd for EntryState
impl PartialOrd for EntryState
Source§impl TypeMarker for EntryState
impl TypeMarker for EntryState
Source§type Owned = EntryState
type Owned = EntryState
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
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
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 EntryState
impl ValueTypeMarker for EntryState
Source§type Borrowed<'a> = EntryState
type Borrowed<'a> = EntryState
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more