Skip to main content

RnsEmbeddedV1NodeErrorCode

Enum RnsEmbeddedV1NodeErrorCode 

Source
#[repr(C)]
pub enum RnsEmbeddedV1NodeErrorCode {
Show 16 variants Unknown = 0, InvalidConfig = 1, IoError = 2, NetworkError = 3, ReticulumError = 4, AlreadyRunning = 5, NotRunning = 6, Timeout = 7, InternalError = 8, InvalidHandle = 9, InvalidPointer = 10, ModeConflict = 11, SubscriptionClosed = 12, NodeRestarted = 13, EventGap = 14, QueuePressure = 15,
}

Variants§

§

Unknown = 0

Unspecified node-centric failure.

§

InvalidConfig = 1

Caller supplied an invalid or unsupported node configuration.

§

IoError = 2

The node hit an IO or backend state failure.

§

NetworkError = 3

The active backend or link is disconnected or unavailable.

§

ReticulumError = 4

The underlying embedded protocol/runtime rejected the operation.

§

AlreadyRunning = 5

The node is already running for the requested lifecycle transition.

§

NotRunning = 6

The operation requires a running node.

§

Timeout = 7

The requested wait budget elapsed.

§

InternalError = 8

The runtime or FFI bridge reached an internal invariant failure.

§

InvalidHandle = 9

The caller passed a null, stale, or mismatched opaque handle.

§

InvalidPointer = 10

The caller passed an invalid pointer for an input or output buffer.

§

ModeConflict = 11

The caller mixed manual and managed node progression modes.

§

SubscriptionClosed = 12

A poll observed that the subscription handle was closed.

§

NodeRestarted = 13

A poll observed a generation change and the node restarted.

§

EventGap = 14

A poll observed an event-log gap and advanced to the next retained event.

§

QueuePressure = 15

The node rejected the operation because queue capacity would be exceeded.

Trait Implementations§

Source§

impl Clone for RnsEmbeddedV1NodeErrorCode

Source§

fn clone(&self) -> RnsEmbeddedV1NodeErrorCode

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for RnsEmbeddedV1NodeErrorCode

Source§

impl Debug for RnsEmbeddedV1NodeErrorCode

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Eq for RnsEmbeddedV1NodeErrorCode

Source§

impl PartialEq for RnsEmbeddedV1NodeErrorCode

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for RnsEmbeddedV1NodeErrorCode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.