#[repr(i32)]pub enum NemoRelayStatus {
Ok = 0,
AlreadyExists = 1,
NotFound = 2,
ScopeStackEmpty = 3,
GuardrailRejected = 4,
Internal = 5,
NullPointer = 6,
InvalidJson = 7,
InvalidUtf8 = 8,
InvalidArg = 9,
StreamEnd = 10,
}Expand description
Status codes returned by stable native ABI functions.
Variants§
Ok = 0
Operation completed successfully.
AlreadyExists = 1
A resource with the given name already exists.
NotFound = 2
The requested resource was not found.
ScopeStackEmpty = 3
The scope stack is empty.
GuardrailRejected = 4
A guardrail rejected the operation.
Internal = 5
An internal runtime error occurred.
NullPointer = 6
A required pointer argument was null.
InvalidJson = 7
A JSON string argument could not be parsed.
InvalidUtf8 = 8
A string argument contained invalid UTF-8.
InvalidArg = 9
A function argument had an invalid value.
StreamEnd = 10
A stream reached end-of-stream and has no chunk to return.
Trait Implementations§
Source§impl Clone for NemoRelayStatus
impl Clone for NemoRelayStatus
Source§fn clone(&self) -> NemoRelayStatus
fn clone(&self) -> NemoRelayStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NemoRelayStatus
Source§impl Debug for NemoRelayStatus
impl Debug for NemoRelayStatus
impl Eq for NemoRelayStatus
Source§impl PartialEq for NemoRelayStatus
impl PartialEq for NemoRelayStatus
Source§fn eq(&self, other: &NemoRelayStatus) -> bool
fn eq(&self, other: &NemoRelayStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NemoRelayStatus
Auto Trait Implementations§
impl Freeze for NemoRelayStatus
impl RefUnwindSafe for NemoRelayStatus
impl Send for NemoRelayStatus
impl Sync for NemoRelayStatus
impl Unpin for NemoRelayStatus
impl UnsafeUnpin for NemoRelayStatus
impl UnwindSafe for NemoRelayStatus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more