#[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§fn eq(&self, other: &EntryState) -> bool
fn eq(&self, other: &EntryState) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for EntryState
impl PartialOrd for EntryState
source§fn partial_cmp(&self, other: &EntryState) -> Option<Ordering>
fn partial_cmp(&self, other: &EntryState) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TypeMarker for EntryState
impl TypeMarker for EntryState
§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
§type Borrowed<'a> = EntryState
type Borrowed<'a> = EntryState
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Copy for EntryState
impl Eq for EntryState
impl StructuralPartialEq for EntryState
Auto Trait Implementations§
impl Freeze for EntryState
impl RefUnwindSafe for EntryState
impl Send for EntryState
impl Sync for EntryState
impl Unpin for EntryState
impl UnwindSafe for EntryState
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
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)
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)
clone_to_uninit
)