pub enum NetworkingAvailabilityError {
Unknown,
CannotTry,
Failed,
Previously,
Retrying,
}
Expand description
Describe a error of a particular network resource In general, we will not automatically retry unless you take some action that depends on of requests this resource, such as querying the status, attempting to initiate a connection, receive a connection, etc. If you do not take any
Variants§
Unknown
Internal dummy/sentinal. The network resource is probably not initialized yet
CannotTry
A dependent resource is missing, so this service is unavailable. (E.g. we cannot talk to routers because Internet is down or we don’t have the network config.)
Failed
We have tried for enough time that we would expect to have been successful by now. We have never been successful
Previously
We tried and were successful at one time, but now it looks like we have a problem
Retrying
We previously failed and are currently retrying
Trait Implementations§
source§impl Clone for NetworkingAvailabilityError
impl Clone for NetworkingAvailabilityError
source§fn clone(&self) -> NetworkingAvailabilityError
fn clone(&self) -> NetworkingAvailabilityError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NetworkingAvailabilityError
impl Debug for NetworkingAvailabilityError
source§impl Error for NetworkingAvailabilityError
impl Error for NetworkingAvailabilityError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl Hash for NetworkingAvailabilityError
impl Hash for NetworkingAvailabilityError
source§impl PartialEq for NetworkingAvailabilityError
impl PartialEq for NetworkingAvailabilityError
source§fn eq(&self, other: &NetworkingAvailabilityError) -> bool
fn eq(&self, other: &NetworkingAvailabilityError) -> bool
self
and other
values to be equal, and is used
by ==
.