Skip to navigation

Enum Diagnostic Read Reason

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay-builtins -p nemo-relay-diagnostics -p nemo-relay-logging -p nemo-relay-plugin-host -p nemo-relay-codecs -p nemo-relay -p nemo-relay-runtime -p nemo-relay-model-pricing -p nemo-relay-resource-metrics -p nemo-relay-observability -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.

#[repr(i32)]pub enum DiagnosticReadReason {
Unspecified = 0,
Disabled = 1,
QueryDisabled = 2,
UnsupportedSchema = 3,
InvalidQuery = 4,
InvalidCursor = 5,
Busy = 6,
SnapshotCapacity = 7,
InvalidLimits = 8,
AllocationFailed = 9,
Internal = 10,
}

Canonical diagnostic read reason values from the shared runtime types.

Variants

Unspecified = 0

Unspecified = 0

No value supplied; invalid where an explicit value is required.

Disabled = 1

Disabled = 1

Collection was disabled at startup.

QueryDisabled = 2

QueryDisabled = 2

Collection is enabled but snapshot workspaces were disabled.

UnsupportedSchema = 3

UnsupportedSchema = 3

Requested snapshot version is unsupported.

InvalidQuery = 4

InvalidQuery = 4

Malformed, oversized, unknown, or inadmissible query input.

InvalidCursor = 5

InvalidCursor = 5

Continuation source, selection, or revision no longer matches.

Busy = 6

Busy = 6

Core or adapter concurrency permits are temporarily exhausted.

SnapshotCapacity = 7

SnapshotCapacity = 7

The page cannot fit its required metadata or a complete row.

InvalidLimits = 8

InvalidLimits = 8

Invalid startup capacity profile, including arithmetic overflow.

AllocationFailed = 9

AllocationFailed = 9

An admitted allocation could not be reserved.

Internal = 10

Internal = 10

An unexpected internal read failure; no original error text is exposed.

Implementations

impl DiagnosticReadReason

impl DiagnosticReadReason

is_valid

pub fn is_valid(value: i32) -> bool

Returns true if value is a variant of DiagnosticReadReason.

from_i32

pub fn from_i32(value: i32) -> Option<DiagnosticReadReason>

Converts an i32 to a DiagnosticReadReason, or None if value is not a valid variant.

impl DiagnosticReadReason

impl DiagnosticReadReason

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<Self>

Creates an enum from field names used in the ProtoBuf definition.

Trait Implementations

impl Clone for DiagnosticReadReason

impl Clone for DiagnosticReadReason

clone

fn clone(&self) -> DiagnosticReadReason

clone_from

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

impl Debug for DiagnosticReadReason

impl Debug for DiagnosticReadReason

fmt

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

impl Default for DiagnosticReadReason

impl Default for DiagnosticReadReason

default

fn default() -> DiagnosticReadReason

impl From<DiagnosticReadReason> for i32

impl From<DiagnosticReadReason> for i32

from

fn from(value: DiagnosticReadReason) -> i32

impl Hash for DiagnosticReadReason

impl Hash for DiagnosticReadReason

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 Ord for DiagnosticReadReason

impl Ord for DiagnosticReadReason

cmp

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

impl PartialEq for DiagnosticReadReason

eq

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

ne

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

impl PartialOrd for DiagnosticReadReason

impl PartialOrd for DiagnosticReadReason

partial_cmp

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

impl TryFrom<i32> for DiagnosticReadReason

Error

type Error = UnknownEnumValue

try_from

fn try_from(value: i32) -> Result<DiagnosticReadReason, UnknownEnumValue>

impl Copy for DiagnosticReadReason

impl Copy for DiagnosticReadReason

impl Eq for DiagnosticReadReason

impl Eq for DiagnosticReadReason

impl StructuralPartialEq for DiagnosticReadReason

impl StructuralPartialEq for DiagnosticReadReason