Enum Diagnostic Observation Outcome
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.
Variants
Unknown = 0
Unknown = 0
Success = 1
Success = 1
Failure = 2
Failure = 2
Implementations
impl DiagnosticObservationOutcome
impl DiagnosticObservationOutcome
is_valid
pub fn is_valid(value: i32) -> bool
Returns true if value is a variant of DiagnosticObservationOutcome.
from_i32
pub fn from_i32(value: i32) -> Option<DiagnosticObservationOutcome>
Converts an i32 to a DiagnosticObservationOutcome, or None if value is not a valid variant.
impl DiagnosticObservationOutcome
impl DiagnosticObservationOutcome
as_str_name
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.
from_str_name
pub fn from_str_name(value: &str) -> Option<DiagnosticObservationOutcome>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations
impl Clone for DiagnosticObservationOutcome
impl Clone for DiagnosticObservationOutcome
clone
fn clone(&self) -> DiagnosticObservationOutcome
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for DiagnosticObservationOutcome
impl Debug for DiagnosticObservationOutcome
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
impl Default for DiagnosticObservationOutcome
impl Default for DiagnosticObservationOutcome
default
fn default() -> DiagnosticObservationOutcome
impl Hash for DiagnosticObservationOutcome
impl Hash for DiagnosticObservationOutcome
hash
fn hash<__H>(&self, state: &mut __H)where
__H: Hasher,
hash_slice
fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
Self: Sized,
impl Ord for DiagnosticObservationOutcome
impl Ord for DiagnosticObservationOutcome
cmp
fn cmp(&self, other: &DiagnosticObservationOutcome) -> Ordering
max
fn max(self, other: Self) -> Selfwhere
Self: Sized,
min
fn min(self, other: Self) -> Selfwhere
Self: Sized,
clamp
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized,
impl PartialEq for DiagnosticObservationOutcome
impl PartialEq for DiagnosticObservationOutcome
eq
fn eq(&self, other: &DiagnosticObservationOutcome) -> bool
ne
fn ne(&self, other: &Rhs) -> bool
impl PartialOrd for DiagnosticObservationOutcome
impl PartialOrd for DiagnosticObservationOutcome
partial_cmp
fn partial_cmp(&self, other: &DiagnosticObservationOutcome) -> Option<Ordering>
lt
fn lt(&self, other: &Rhs) -> bool
le
fn le(&self, other: &Rhs) -> bool
gt
fn gt(&self, other: &Rhs) -> bool
ge
fn ge(&self, other: &Rhs) -> bool
impl TryFrom<i32> for DiagnosticObservationOutcome
impl TryFrom<i32> for DiagnosticObservationOutcome
Error
type Error = UnknownEnumValue
try_from
fn try_from(
value: i32,
) -> Result<DiagnosticObservationOutcome, UnknownEnumValue>
impl Copy for DiagnosticObservationOutcome
impl Copy for DiagnosticObservationOutcome
impl Eq for DiagnosticObservationOutcome
impl Eq for DiagnosticObservationOutcome
impl StructuralPartialEq for DiagnosticObservationOutcome
impl StructuralPartialEq for DiagnosticObservationOutcome