[][src]Enum holochain_core::nucleus::ribosome::api::ZomeApiFunction

#[repr(usize)]
pub enum ZomeApiFunction { MissingNo, Abort, Debug, CommitAppEntry, GetAppEntry, InitGlobals, Call, LinkEntries, GetLinks, Query, HashEntry, }

Enumeration of all the Zome Functions known and usable in Zomes. Enumeration can convert to str.

Variants

Error index for unimplemented functions

Abort 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

Zome API send debug information to the log debug(s: String)

Commit an app entry to source chain commit_entry(entry_type: String, entry_value: String) -> Hash

Get an app entry from source chain by key (header hash) get_entry(address: Address) -> Entry

Init Zome API Globals hc_init_globals() -> InitGlobalsOutput

Call a zome function in a different capability or zome hc_call(zome_name: String, cap_name: String, fn_name: String, args: String);

Methods

impl ZomeApiFunction
[src]

Trait Implementations

impl Defn for ZomeApiFunction
[src]

return the canonical name of this function definition

convert the canonical name of this function to an index

convert an index to the function definition

impl Eq for ZomeApiFunction
[src]

impl PartialEq<ZomeApiFunction> for ZomeApiFunction
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for ZomeApiFunction
[src]

Formats the value using the given formatter. Read more

impl FromStr for ZomeApiFunction
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

impl FromPrimitive for ZomeApiFunction
[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

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 Sync for ZomeApiFunction

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

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

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

🔬 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]

Mutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Same for T
[src]

Should always be Self

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

Compare self to key and return true if they are equal.