Skip to navigation

Struct Diagnostic Observation

View as Markdown

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.

pub struct DiagnosticObservation {
    pub component: u32,
    pub code: u32,
    pub failure_class: Option<String>,
    pub outcome: i32,
    pub severity: i32,
    pub count: u64,
    pub observed_unix_micros: Option<i64>,
    pub detail: Option<String>,
    pub session_id: Option<String>,
    pub request_id: Option<String>,
}

Fields

component: u32

code: u32

failure_class: Option<String>

outcome: i32

severity: i32

count: u64

observed_unix_micros: Option<i64>

detail: Option<String>

session_id: Option<String>

request_id: Option<String>

Implementations

impl DiagnosticObservation

impl DiagnosticObservation

failure_class

pub fn failure_class(&self) -> &str

Returns the value of failure_class, or the default value if failure_class is unset.

outcome

pub fn outcome(&self) -> DiagnosticObservationOutcome

Returns the enum value of outcome, or the default if the field is set to an invalid enum value.

set_outcome

pub fn set_outcome(&mut self, value: DiagnosticObservationOutcome)

Sets outcome to the provided enum value.

severity

pub fn severity(&self) -> DiagnosticObservationSeverity

Returns the enum value of severity, or the default if the field is set to an invalid enum value.

set_severity

pub fn set_severity(&mut self, value: DiagnosticObservationSeverity)

Sets severity to the provided enum value.

observed_unix_micros

pub fn observed_unix_micros(&self) -> i64

Returns the value of observed_unix_micros, or the default value if observed_unix_micros is unset.

detail

pub fn detail(&self) -> &str

Returns the value of detail, or the default value if detail is unset.

session_id

pub fn session_id(&self) -> &str

Returns the value of session_id, or the default value if session_id is unset.

request_id

pub fn request_id(&self) -> &str

Returns the value of request_id, or the default value if request_id is unset.

Trait Implementations

impl Clone for DiagnosticObservation

impl Clone for DiagnosticObservation

clone

fn clone(&self) -> DiagnosticObservation

clone_from

fn clone_from(&mut self, source: &Self)

impl Debug for DiagnosticObservation

impl Debug for DiagnosticObservation

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Default for DiagnosticObservation

impl Default for DiagnosticObservation

default

fn default() -> Self

impl Hash for DiagnosticObservation

impl Hash for DiagnosticObservation

hash

fn hash<__H: Hasher>(&self, state: &mut __H)

hash_slice

fn hash_slice<H>(data: &[Self], state: &mut H)where
    H: Hasher,
    Self: Sized,

impl Message for DiagnosticObservation

impl Message for DiagnosticObservation

encoded_len

fn encoded_len(&self) -> usize

clear

fn clear(&mut self)

encode

fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
    Self: Sized,

encode_to_vec

fn encode_to_vec(&self) -> Vec<u8> where
    Self: Sized,

encode_length_delimited

fn encode_length_delimited(
    &self,
    buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
    Self: Sized,

encode_length_delimited_to_vec

fn encode_length_delimited_to_vec(&self) -> Vec<u8> where
    Self: Sized,

decode

fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
    Self: Default,

decode_length_delimited

fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
    Self: Default,

merge

fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
    Self: Sized,

merge_length_delimited

fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
    Self: Sized,

impl PartialEq for DiagnosticObservation

impl PartialEq for DiagnosticObservation

eq

fn eq(&self, other: &DiagnosticObservation) -> bool

ne

fn ne(&self, other: &Rhs) -> bool

impl Eq for DiagnosticObservation

impl Eq for DiagnosticObservation

impl StructuralPartialEq for DiagnosticObservation

impl StructuralPartialEq for DiagnosticObservation