Skip to main content

ErrorCode

Enum ErrorCode 

Source
#[repr(u32)]
pub enum ErrorCode {
Show 20 variants UNKNOWN = 4_096, NULL_POINTER = 4_097, INVALID_UTF8 = 4_098, NUL_BYTE = 4_099, PARTY_INDEX_OUT_OF_RANGE = 4_112, EMPTY_PARTY_LIST = 4_113, THRESHOLD_TOO_SMALL = 4_114, THRESHOLD_TOO_LARGE = 4_115, DUPLICATE_PARTY_ID = 4_116, THIS_PARTY_IDX_OUT_OF_RANGE = 4_117, SCHEME_NOT_FOUND = 4_128, SESSION_NOT_COMPLETE = 4_129, SESSION_ALREADY_COMPLETE = 4_130, ROUND_OVERFLOW = 4_131, NOT_A_DKG_SESSION = 4_132, SHARE_SCHEME_MISMATCH = 4_144, SHARE_TRUNCATED = 4_145, SHARE_INVALID_SCHEME = 4_146, INSUFFICIENT_BUFFER = 4_160, SCHEME_INTERNAL_ERROR = 4_161,
}
Expand description

Numeric error codes for the cfm_tc_* ABI. These are deliberately disjoint from the core engine’s codes (which start at 1) so a caller can disambiguate the source — TC codes begin at 0x1000.

Variants§

§

UNKNOWN = 4_096

§

NULL_POINTER = 4_097

§

INVALID_UTF8 = 4_098

§

NUL_BYTE = 4_099

§

PARTY_INDEX_OUT_OF_RANGE = 4_112

§

EMPTY_PARTY_LIST = 4_113

§

THRESHOLD_TOO_SMALL = 4_114

§

THRESHOLD_TOO_LARGE = 4_115

§

DUPLICATE_PARTY_ID = 4_116

§

THIS_PARTY_IDX_OUT_OF_RANGE = 4_117

§

SCHEME_NOT_FOUND = 4_128

§

SESSION_NOT_COMPLETE = 4_129

§

SESSION_ALREADY_COMPLETE = 4_130

§

ROUND_OVERFLOW = 4_131

§

NOT_A_DKG_SESSION = 4_132

§

SHARE_SCHEME_MISMATCH = 4_144

§

SHARE_TRUNCATED = 4_145

§

SHARE_INVALID_SCHEME = 4_146

§

INSUFFICIENT_BUFFER = 4_160

§

SCHEME_INTERNAL_ERROR = 4_161

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
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V