Skip to navigation

Enum Failure Code

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.

#[non_exhaustive]pub enum FailureCode {
    Daemon(DaemonFailureCode),
    Cli(CliFailureCode),
    Plugin(PluginFailureCode),
    Logging(LoggingFailureCode),
}

Failure event hierarchy for integrated producers.

Variants (Non-exhaustive)

Daemon(DaemonFailureCode)

Daemon(DaemonFailureCode)

Daemon-owned failures.

Cli(CliFailureCode)

Cli(CliFailureCode)

CLI execution and transport failures.

Plugin(PluginFailureCode)

Plugin(PluginFailureCode)

Plugin failures.

Logging(LoggingFailureCode)

Logging(LoggingFailureCode)

Logging failures.

Implementations

impl FailureCode

impl FailureCode

canonical_name

pub const fn canonical_name(self) -> &'static str

Stable catalogue name.

domain

pub const fn domain(self) -> DiagnosticDomain

Owning subsystem derived from the code.

allowed_classes

pub const fn allowed_classes(self) -> &'static [FailureClass]

Permitted cause classes for this observation.

Trait Implementations

impl Clone for FailureCode

impl Clone for FailureCode

clone

fn clone(&self) -> FailureCode

clone_from

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

impl Debug for FailureCode

impl Debug for FailureCode

fmt

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

impl<'de> Deserialize<'de> for FailureCode

impl<'de> Deserialize<'de> for FailureCode

deserialize

fn deserialize<__D>(
    __deserializer: __D,
) -> Result<FailureCode, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,

impl Hash for FailureCode

impl Hash for FailureCode

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 FailureCode

impl Ord for FailureCode

cmp

fn cmp(&self, other: &FailureCode) -> 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 FailureCode

impl PartialEq for FailureCode

eq

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

ne

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

impl PartialOrd for FailureCode

impl PartialOrd for FailureCode

partial_cmp

fn partial_cmp(&self, other: &FailureCode) -> 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 Serialize for FailureCode

impl Serialize for FailureCode

serialize

fn serialize<__S>(
    &self,
    __serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
    __S: Serializer,

impl Copy for FailureCode

impl Copy for FailureCode

impl Eq for FailureCode

impl Eq for FailureCode

impl StructuralPartialEq for FailureCode

impl StructuralPartialEq for FailureCode