[−][src]Enum holochain_core_types::error::RibosomeEncodedValue
Represents all possible values passed to/from wasmi functions All wasmi functions are I64 values
Variants
@TODO make this unambiguous or remove Contextually represents:
- Function succeeded without any allocation
- Empty/nil argument to a function
- Zero length allocation (error)
Allocation(RibosomeEncodedAllocation)
A value that can be safely converted to a wasm allocation High bits represent offset, low bits represent length @see WasmAllocation
Failure(RibosomeErrorCode)
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 From<RibosomeEncodedValue> for RibosomeEncodingBits
[src]
fn from(ribosome_return_code: RibosomeEncodedValue) -> RibosomeEncodingBits
[src]
impl From<RibosomeEncodedValue> for RibosomeRuntimeBits
[src]
fn from(ribosome_return_code: RibosomeEncodedValue) -> RibosomeRuntimeBits
[src]
impl From<u64> for RibosomeEncodedValue
[src]
fn from(i: RibosomeEncodingBits) -> Self
[src]
impl From<RibosomeEncodedValue> for String
[src]
fn from(return_code: RibosomeEncodedValue) -> String
[src]
impl From<RibosomeEncodedValue> for JsonString
[src]
fn from(ribosome_return_code: RibosomeEncodedValue) -> JsonString
[src]
impl From<HolochainError> for RibosomeEncodedValue
[src]
fn from(error: HolochainError) -> Self
[src]
impl Clone for RibosomeEncodedValue
[src]
fn clone(&self) -> RibosomeEncodedValue
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<RibosomeEncodedValue> for RibosomeEncodedValue
[src]
fn eq(&self, other: &RibosomeEncodedValue) -> bool
[src]
fn ne(&self, other: &RibosomeEncodedValue) -> bool
[src]
impl ToString for RibosomeEncodedValue
[src]
impl Debug for RibosomeEncodedValue
[src]
impl TryFrom<JsonString> for RibosomeEncodedValue
[src]
type Error = HolochainError
The type returned in the event of a conversion error.
fn try_from(json_string: JsonString) -> Result<Self, Self::Error>
[src]
impl FromStr for RibosomeEncodedValue
[src]
type Err = HolochainError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl StructuralPartialEq for RibosomeEncodedValue
[src]
Auto Trait Implementations
impl Send for RibosomeEncodedValue
impl Sync for RibosomeEncodedValue
impl Unpin for RibosomeEncodedValue
impl UnwindSafe for RibosomeEncodedValue
impl RefUnwindSafe for RibosomeEncodedValue
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Clone for T where
T: Clone,
[src]
T: Clone,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,