pub enum ConnectivityStatus {
Other,
Local,
Global,
}Expand description
Connectivity status derived from a given IP address.
Defines whether a node appears to be locally-reachable (on the host machine or via WLAN) or globally-reachable (via the internet). This is not a guarantee of the overall node connectivity status but a best-guess based on the provided IP address.
Variants§
Other
The IP address is neither link-local, loopback nor global.
Local
The IP address is link-local or loopback.
Global
The IP address appears to be globally reachable.
Implementations§
Trait Implementations§
Source§impl Debug for ConnectivityStatus
impl Debug for ConnectivityStatus
Source§impl Ord for ConnectivityStatus
impl Ord for ConnectivityStatus
Source§fn cmp(&self, other: &ConnectivityStatus) -> Ordering
fn cmp(&self, other: &ConnectivityStatus) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ConnectivityStatus
impl PartialEq for ConnectivityStatus
Source§impl PartialOrd for ConnectivityStatus
impl PartialOrd for ConnectivityStatus
impl Eq for ConnectivityStatus
impl StructuralPartialEq for ConnectivityStatus
Auto Trait Implementations§
impl Freeze for ConnectivityStatus
impl RefUnwindSafe for ConnectivityStatus
impl Send for ConnectivityStatus
impl Sync for ConnectivityStatus
impl Unpin for ConnectivityStatus
impl UnwindSafe for ConnectivityStatus
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage