[][src]Enum holochain_core_types::error::RibosomeErrorCode

#[repr(u64)]
pub enum RibosomeErrorCode {
    Unspecified,
    ArgumentDeserializationFailed,
    OutOfMemory,
    ReceivedWrongActionResult,
    CallbackFailed,
    RecursiveCallForbidden,
    ResponseSerializationFailed,
    NotAnAllocation,
    ZeroSizedAllocation,
    UnknownEntryType,
    MismatchWasmCallDataType,
    EntryNotFound,
    WorkflowFailed,
}

Enum of all possible ERROR codes that a Zome API Function could return.

Variants

Unspecified
ArgumentDeserializationFailed
OutOfMemory
ReceivedWrongActionResult
CallbackFailed
RecursiveCallForbidden
ResponseSerializationFailed
NotAnAllocation
ZeroSizedAllocation
UnknownEntryType
MismatchWasmCallDataType
EntryNotFound
WorkflowFailed

Methods

impl RibosomeErrorCode[src]

pub fn as_str(&self) -> &str[src]

impl RibosomeErrorCode[src]

pub fn from_code_int(code: RibosomeCodeBits) -> Self[src]

pub fn from_return_code(ret_code: RibosomeEncodedValue) -> Self[src]

Trait Implementations

impl<'a> From<&'a RibosomeErrorCode> for JsonString[src]

impl From<RibosomeErrorCode> for JsonString[src]

impl From<HolochainError> for RibosomeErrorCode[src]

impl From<RibosomeErrorCode> for String[src]

impl Clone for RibosomeErrorCode[src]

impl Eq for RibosomeErrorCode[src]

impl Ord for RibosomeErrorCode[src]

impl PartialEq<RibosomeErrorCode> for RibosomeErrorCode[src]

impl PartialOrd<RibosomeErrorCode> for RibosomeErrorCode[src]

impl ToString for RibosomeErrorCode[src]

impl Debug for RibosomeErrorCode[src]

impl<'a> TryFrom<&'a JsonString> for RibosomeErrorCode[src]

type Error = JsonError

The type returned in the event of a conversion error.

impl TryFrom<JsonString> for RibosomeErrorCode[src]

type Error = JsonError

The type returned in the event of a conversion error.

impl FromStr for RibosomeErrorCode[src]

type Err = HolochainError

The associated error which can be returned from parsing.

impl Hash for RibosomeErrorCode[src]

impl StructuralPartialEq for RibosomeErrorCode[src]

impl StructuralEq for RibosomeErrorCode[src]

impl Serialize for RibosomeErrorCode[src]

impl<'de> Deserialize<'de> for RibosomeErrorCode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Clone for T where
    T: Clone
[src]

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