Enum Nemo Relay Status

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.

1#[repr(i32)]pub enum NemoRelayStatus {
2 Ok = 0,
3 AlreadyExists = 1,
4 NotFound = 2,
5 ScopeStackEmpty = 3,
6 GuardrailRejected = 4,
7 Internal = 5,
8 NullPointer = 6,
9 InvalidJson = 7,
10 InvalidUtf8 = 8,
11 InvalidArg = 9,
12 StreamEnd = 10,
13}

Status codes returned by stable native ABI functions.

Variants

Ok = 0

Ok = 0

Operation completed successfully.

AlreadyExists = 1

AlreadyExists = 1

A resource with the given name already exists.

NotFound = 2

NotFound = 2

The requested resource was not found.

ScopeStackEmpty = 3

ScopeStackEmpty = 3

The scope stack is empty.

GuardrailRejected = 4

GuardrailRejected = 4

A guardrail rejected the operation.

Internal = 5

Internal = 5

An internal runtime error occurred.

NullPointer = 6

NullPointer = 6

A required pointer argument was null.

InvalidJson = 7

InvalidJson = 7

A JSON string argument could not be parsed.

InvalidUtf8 = 8

InvalidUtf8 = 8

A string argument contained invalid UTF-8.

InvalidArg = 9

InvalidArg = 9

A function argument had an invalid value.

StreamEnd = 10

StreamEnd = 10

A stream reached end-of-stream and has no chunk to return.

Trait Implementations

impl Clone for NemoRelayStatus

impl Clone for NemoRelayStatus

clone

fn clone(&self) -> NemoRelayStatus

clone_from

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

impl Debug for NemoRelayStatus

impl Debug for NemoRelayStatus

fmt

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

impl PartialEq for NemoRelayStatus

impl PartialEq for NemoRelayStatus

eq

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

ne

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

impl Copy for NemoRelayStatus

impl Copy for NemoRelayStatus

impl Eq for NemoRelayStatus

impl Eq for NemoRelayStatus

impl StructuralPartialEq for NemoRelayStatus

impl StructuralPartialEq for NemoRelayStatus