Trait holochain_types::prelude::InlineZomeT
source · [−]pub trait InlineZomeT: Debug {
fn callbacks(&self) -> Vec<FunctionName, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
;
fn maybe_call(
&self,
api: Box<dyn HostFnApiT + 'static, Global>,
name: &FunctionName,
input: ExternIO
) -> Result<Option<ExternIO>, InlineZomeError>;
fn uuid(&self) -> String;
fn get_global(&self, name: &str) -> Option<u8>;
}
Required Methods
Get the callbacks for this InlineZome
.
sourcefn maybe_call(
&self,
api: Box<dyn HostFnApiT + 'static, Global>,
name: &FunctionName,
input: ExternIO
) -> Result<Option<ExternIO>, InlineZomeError>
fn maybe_call(
&self,
api: Box<dyn HostFnApiT + 'static, Global>,
name: &FunctionName,
input: ExternIO
) -> Result<Option<ExternIO>, InlineZomeError>
Make a call to an inline zome callback. If the callback doesn’t exist, return None.
sourcefn get_global(&self, name: &str) -> Option<u8>
fn get_global(&self, name: &str) -> Option<u8>
Get a global value for this zome.