[−][src]Enum holochain_core::nucleus::ribosome::api::ZomeApiFunction
Enumeration of all the Zome Functions known and usable in Zomes. Enumeration can convert to str.
Variants
MissingNoError index for unimplemented functions
AbortAbort is a way to receive useful debug info from assemblyscript memory allocators message: mem address in the wasm memory for an error message filename: mem address in the wasm memory for a filename line: line number column: column number
DebugZome API send debug information to the log debug(s: String)
CommitAppEntryCommit an app entry to source chain commit_entry(entry_type: String, entry_value: String) -> Hash
GetAppEntryGet an app entry from source chain by key (header hash) get_entry(address: Address) -> Entry
InitGlobalsInit Zome API Globals hc_init_globals() -> InitGlobalsOutput
CallCall a zome function in a different capability or zome hc_call(zome_name: String, cap_name: String, fn_name: String, args: String);
LinkEntriesGetLinksQueryHashEntryMethods
impl ZomeApiFunction[src]
impl ZomeApiFunctionpub fn as_fn(
&self
) -> fn(_: &mut Runtime, _: &RuntimeArgs) -> Result<Option<RuntimeValue>, Trap>[src]
pub fn as_fn(
&self
) -> fn(_: &mut Runtime, _: &RuntimeArgs) -> Result<Option<RuntimeValue>, Trap>Trait Implementations
impl Defn for ZomeApiFunction[src]
impl Defn for ZomeApiFunctionfn as_str(&self) -> &'static str[src]
fn as_str(&self) -> &'static strreturn the canonical name of this function definition
fn str_to_index(s: &str) -> usize[src]
fn str_to_index(s: &str) -> usizeconvert the canonical name of this function to an index
fn from_index(i: usize) -> Self[src]
fn from_index(i: usize) -> Selfconvert an index to the function definition
fn capability(&self) -> ReservedCapabilityNames[src]
fn capability(&self) -> ReservedCapabilityNamesimpl Eq for ZomeApiFunction[src]
impl Eq for ZomeApiFunctionimpl PartialEq<ZomeApiFunction> for ZomeApiFunction[src]
impl PartialEq<ZomeApiFunction> for ZomeApiFunctionfn eq(&self, other: &ZomeApiFunction) -> bool[src]
fn eq(&self, other: &ZomeApiFunction) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Debug for ZomeApiFunction[src]
impl Debug for ZomeApiFunctionfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl FromStr for ZomeApiFunction[src]
impl FromStr for ZomeApiFunctiontype Err = &'static str
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>[src]
fn from_str(s: &str) -> Result<Self, Self::Err>Parses a string s to return a value of this type. Read more
impl FromPrimitive for ZomeApiFunction[src]
impl FromPrimitive for ZomeApiFunctionfn from_i64(n: i64) -> Option<Self>[src]
fn from_i64(n: i64) -> Option<Self>Convert an i64 to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more
fn from_u64(n: u64) -> Option<Self>[src]
fn from_u64(n: u64) -> Option<Self>Convert an u64 to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more
fn from_isize(n: isize) -> Option<Self>[src]
fn from_isize(n: isize) -> Option<Self>Convert an isize to return an optional value of this type. If the value cannot be represented by this value, then None is returned. Read more
fn from_i8(n: i8) -> Option<Self>[src]
fn from_i8(n: i8) -> Option<Self>Convert an i8 to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more
fn from_i16(n: i16) -> Option<Self>[src]
fn from_i16(n: i16) -> Option<Self>Convert an i16 to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more
fn from_i32(n: i32) -> Option<Self>[src]
fn from_i32(n: i32) -> Option<Self>Convert an i32 to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more
fn from_i128(n: i128) -> Option<Self>[src]
fn from_i128(n: i128) -> Option<Self>Convert an i128 to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more
fn from_usize(n: usize) -> Option<Self>[src]
fn from_usize(n: usize) -> Option<Self>Convert a usize to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more
fn from_u8(n: u8) -> Option<Self>[src]
fn from_u8(n: u8) -> Option<Self>Convert an u8 to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more
fn from_u16(n: u16) -> Option<Self>[src]
fn from_u16(n: u16) -> Option<Self>Convert an u16 to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more
fn from_u32(n: u32) -> Option<Self>[src]
fn from_u32(n: u32) -> Option<Self>Convert an u32 to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more
fn from_u128(n: u128) -> Option<Self>[src]
fn from_u128(n: u128) -> Option<Self>Convert an u128 to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more
fn from_f32(n: f32) -> Option<Self>[src]
fn from_f32(n: f32) -> Option<Self>Convert a f32 to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more
fn from_f64(n: f64) -> Option<Self>[src]
fn from_f64(n: f64) -> Option<Self>Convert a f64 to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more
Auto Trait Implementations
impl Send for ZomeApiFunction
impl Send for ZomeApiFunctionimpl Sync for ZomeApiFunction
impl Sync for ZomeApiFunctionBlanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static
Gets the TypeId of self. Read more
impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> Same for T[src]
impl<T> Same for Ttype Output = T
Should always be Self
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, fn equivalent(&self, key: &K) -> bool[src]
fn equivalent(&self, key: &K) -> boolCompare self to key and return true if they are equal.