#[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]. A static entry may be converted into a
dynamic entry with [Controller.ProbeEntry], however, at which
point it may be subject to expiry and deletion.
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<EntryState>
pub const fn into_primitive(self) -> u32
Trait Implementations§
Source§impl Clone for EntryState
impl Clone for EntryState
Source§fn clone(&self) -> EntryState
fn clone(&self) -> EntryState
1.0.0 (const: unstable) · 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> Decode<EntryState, D> for EntryStatewhere
D: ResourceDialect,
impl<D> Decode<EntryState, D> for EntryStatewhere
D: ResourceDialect,
Source§fn new_empty() -> EntryState
fn new_empty() -> EntryState
Self. The specific value does not matter,
since it will be overwritten by decode.Source§impl<D> Encode<EntryState, D> for EntryStatewhere
D: ResourceDialect,
impl<D> Encode<EntryState, D> for EntryStatewhere
D: ResourceDialect,
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 (const: unstable) · 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§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 moreSource§fn borrow(
value: &<EntryState as TypeMarker>::Owned,
) -> <EntryState as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<EntryState as TypeMarker>::Owned, ) -> <EntryState as ValueTypeMarker>::Borrowed<'_>
&Self::Owned to Self::Borrowed.impl 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 UnsafeUnpin 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§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§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
T to [Self]