Skip to navigation

Enum Diagnostic Error

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 DiagnosticError {
    Unsupported,
    Unavailable,
    Closed,
    PermissionDenied,
    Busy,
    Capacity,
    Invalid,
    Conflict,
    BufferTooSmall,
    Internal,
    Read(DiagnosticReadReason),
}

Diagnostic operation error. These values never classify plugin execution.

Variants (Non-exhaustive)

Unsupported

Unsupported

Host has no compatible native diagnostics extension.

Unavailable

Unavailable

Diagnostic adapter backing could not be admitted.

Closed

Closed

Activation or registration was closed.

PermissionDenied

PermissionDenied

Host did not grant whole-context read access.

Busy

Busy

Re-entrant call or exhausted bounded admission; no automatic retry occurs.

Capacity

Capacity

Registration or request exceeds its capacity.

Invalid

Invalid

Input or handle is invalid.

Conflict

Conflict

A local component name is already registered.

BufferTooSmall

BufferTooSmall

Caller-owned output buffer is too small.

Internal

Internal

Internal adapter failure; acceptance is not safe to retry.

Read(DiagnosticReadReason)

Read(DiagnosticReadReason)

Canonical core read reason.

Implementations

impl DiagnosticError

impl DiagnosticError

reason

pub fn reason(self) -> &'static str

Stable bounded error label without producer-supplied text.

from_status

pub fn from_status(status: u32) -> Self

Convert the frozen native status representation; unknown values fail closed.

status

pub fn status(self) -> u32

Frozen native representation; 0 and 1 are reserved for accepted/disabled.

Trait Implementations

impl Clone for DiagnosticError

impl Clone for DiagnosticError

clone

fn clone(&self) -> DiagnosticError

clone_from

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

impl Debug for DiagnosticError

impl Debug for DiagnosticError

fmt

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

impl Display for DiagnosticError

impl Display for DiagnosticError

fmt

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

impl Error for DiagnosticError

impl Error for DiagnosticError

source

fn source(&self) -> Option<&(dyn Error + 'static)>

description

fn description(&self) -> &str

cause

fn cause(&self) -> Option<&dyn Error>

provide

fn provide<'a>(&'a self, request: &mut Request<'a>)

impl PartialEq for DiagnosticError

impl PartialEq for DiagnosticError

eq

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

ne

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

impl Copy for DiagnosticError

impl Copy for DiagnosticError

impl Eq for DiagnosticError

impl Eq for DiagnosticError

impl StructuralPartialEq for DiagnosticError

impl StructuralPartialEq for DiagnosticError