#[repr(i32)]pub enum NemoFlowStatus {
Ok = 0,
AlreadyExists = 1,
NotFound = 2,
ScopeStackEmpty = 3,
GuardrailRejected = 4,
Internal = 5,
NullPointer = 6,
InvalidJson = 7,
InvalidUtf8 = 8,
InvalidArg = 9,
}Expand description
Status codes returned by all FFI functions.
Every extern "C" function in this library returns an NemoFlowStatus.
On non-Ok returns, call nemo_flow_last_error on the same thread to
retrieve a human-readable error message.
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 (no active scope).
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 C string argument contained invalid UTF-8.
InvalidArg = 9
A function argument had an invalid value (e.g. malformed UUID).
Trait Implementations§
Source§impl Clone for NemoFlowStatus
impl Clone for NemoFlowStatus
Source§fn clone(&self) -> NemoFlowStatus
fn clone(&self) -> NemoFlowStatus
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 moreSource§impl Debug for NemoFlowStatus
impl Debug for NemoFlowStatus
Source§impl From<&FlowError> for NemoFlowStatus
impl From<&FlowError> for NemoFlowStatus
Source§impl PartialEq for NemoFlowStatus
impl PartialEq for NemoFlowStatus
Source§fn eq(&self, other: &NemoFlowStatus) -> bool
fn eq(&self, other: &NemoFlowStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for NemoFlowStatus
impl Eq for NemoFlowStatus
impl StructuralPartialEq for NemoFlowStatus
Auto Trait Implementations§
impl Freeze for NemoFlowStatus
impl RefUnwindSafe for NemoFlowStatus
impl Send for NemoFlowStatus
impl Sync for NemoFlowStatus
impl Unpin for NemoFlowStatus
impl UnsafeUnpin for NemoFlowStatus
impl UnwindSafe for NemoFlowStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request