[][src]Enum holochain_core_types::error::RibosomeEncodedValue

#[repr(u64)]
pub enum RibosomeEncodedValue {
    Success,
    Allocation(RibosomeEncodedAllocation),
    Failure(RibosomeErrorCode),
}

Represents all possible values passed to/from wasmi functions All wasmi functions are I64 values

Variants

Success

@TODO make this unambiguous or remove Contextually represents:

  • Function succeeded without any allocation
  • Empty/nil argument to a function
  • Zero length allocation (error)

A value that can be safely converted to a wasm allocation High bits represent offset, low bits represent length @see WasmAllocation

A value that should be interpreted as an error Low bits are zero, high bits map to an enum variant

Methods

impl RibosomeEncodedValue[src]

pub fn from_error(err_code: RibosomeErrorCode) -> Self[src]

Trait Implementations

impl Clone for RibosomeEncodedValue[src]

impl Debug for RibosomeEncodedValue[src]

impl From<HolochainError> for RibosomeEncodedValue[src]

impl From<RibosomeEncodedValue> for RibosomeEncodingBits[src]

impl From<RibosomeEncodedValue> for RibosomeRuntimeBits[src]

impl From<RibosomeEncodedValue> for String[src]

impl From<RibosomeEncodedValue> for JsonString[src]

impl From<u64> for RibosomeEncodedValue[src]

impl FromStr for RibosomeEncodedValue[src]

type Err = HolochainError

The associated error which can be returned from parsing.

impl PartialEq<RibosomeEncodedValue> for RibosomeEncodedValue[src]

impl StructuralPartialEq for RibosomeEncodedValue[src]

impl ToString for RibosomeEncodedValue[src]

impl TryFrom<JsonString> for RibosomeEncodedValue[src]

type Error = HolochainError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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 = Infallible

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<V, T> VZip<V> for T where
    V: MultiLane<T>,