Enum google_api_proto::google::cloud::networkmanagement::v1beta1::probing_details::ProbingResult
source · #[repr(i32)]pub enum ProbingResult {
Unspecified = 0,
Reachable = 1,
Unreachable = 2,
ReachabilityInconsistent = 3,
Undetermined = 4,
}
Expand description
Overall probing result of the test.
Variants§
Unspecified = 0
No result was specified.
Reachable = 1
At least 95% of packets reached the destination.
Unreachable = 2
No packets reached the destination.
ReachabilityInconsistent = 3
Less than 95% of packets reached the destination.
Undetermined = 4
Reachability could not be determined. Possible reasons are:
- The user lacks permission to access some of the network resources required to run the test.
- No valid source endpoint could be derived from the request.
- An internal error occurred.
Implementations§
source§impl ProbingResult
impl ProbingResult
source§impl ProbingResult
impl ProbingResult
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for ProbingResult
impl Clone for ProbingResult
source§fn clone(&self) -> ProbingResult
fn clone(&self) -> ProbingResult
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ProbingResult
impl Debug for ProbingResult
source§impl Default for ProbingResult
impl Default for ProbingResult
source§fn default() -> ProbingResult
fn default() -> ProbingResult
Returns the “default value” for a type. Read more
source§impl From<ProbingResult> for i32
impl From<ProbingResult> for i32
source§fn from(value: ProbingResult) -> i32
fn from(value: ProbingResult) -> i32
Converts to this type from the input type.
source§impl Hash for ProbingResult
impl Hash for ProbingResult
source§impl Ord for ProbingResult
impl Ord for ProbingResult
source§fn cmp(&self, other: &ProbingResult) -> Ordering
fn cmp(&self, other: &ProbingResult) -> 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 ProbingResult
impl PartialEq for ProbingResult
source§fn eq(&self, other: &ProbingResult) -> bool
fn eq(&self, other: &ProbingResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ProbingResult
impl PartialOrd for ProbingResult
source§fn partial_cmp(&self, other: &ProbingResult) -> Option<Ordering>
fn partial_cmp(&self, other: &ProbingResult) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for ProbingResult
impl TryFrom<i32> for ProbingResult
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
source§fn try_from(value: i32) -> Result<ProbingResult, UnknownEnumValue>
fn try_from(value: i32) -> Result<ProbingResult, UnknownEnumValue>
Performs the conversion.
impl Copy for ProbingResult
impl Eq for ProbingResult
impl StructuralPartialEq for ProbingResult
Auto Trait Implementations§
impl Freeze for ProbingResult
impl RefUnwindSafe for ProbingResult
impl Send for ProbingResult
impl Sync for ProbingResult
impl Unpin for ProbingResult
impl UnwindSafe for ProbingResult
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
§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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request